mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-15 18:32:04 -06:00
remove pre formatting to appease markdown-it fenced code sections
This commit is contained in:
parent
405fdb690d
commit
6179692162
@ -1,7 +1,6 @@
|
|||||||
package io.nosqlbench.virtdata.library.basics.shared.from_long.to_uuid;
|
package io.nosqlbench.virtdata.library.basics.shared.from_long.to_uuid;
|
||||||
|
|
||||||
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
|
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
|
||||||
import io.nosqlbench.virtdata.library.basics.shared.from_long.to_long.Hash;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.function.LongFunction;
|
import java.util.function.LongFunction;
|
||||||
@ -10,15 +9,6 @@ import java.util.function.LongFunction;
|
|||||||
* This function creates a non-random UUID in the type 4 version (Random).
|
* This function creates a non-random UUID in the type 4 version (Random).
|
||||||
* It always puts the same value in the MSB position of the UUID format.
|
* It always puts the same value in the MSB position of the UUID format.
|
||||||
* The input value is put in the LSB position.
|
* The input value is put in the LSB position.
|
||||||
* <pre>
|
|
||||||
* xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
|
|
||||||
* mmmmmmmm-mmmm-Mmmm-Llll-llllllllllll
|
|
||||||
* 4 3
|
|
||||||
* </pre>
|
|
||||||
* As shown above, the LSB position does not have the complication of having
|
|
||||||
* a version identifier (position M) dividing the dynamic range of the data type.
|
|
||||||
* For this reason, only the LSB side is used for this mapper, which allows
|
|
||||||
* an effective range of Long.MAX_VALUE/8, given the loss of 3 digits of precision.
|
|
||||||
*
|
*
|
||||||
* This function is suitable for deterministic testing of scenarios which depend
|
* This function is suitable for deterministic testing of scenarios which depend
|
||||||
* on type 4 UUIDs, but without the mandated randomness that makes testing difficult.
|
* on type 4 UUIDs, but without the mandated randomness that makes testing difficult.
|
||||||
|
@ -16,7 +16,7 @@ import java.util.function.Function;
|
|||||||
* date time, yielding a DateTime object.
|
* date time, yielding a DateTime object.
|
||||||
*
|
*
|
||||||
* If no arguments are provided, then the format is set to
|
* If no arguments are provided, then the format is set to
|
||||||
* <pre>yyyy-MM-dd HH:mm:ss.SSSZ</pre>.
|
* "yyyy-MM-dd HH:mm:ss.SSSZ".
|
||||||
*
|
*
|
||||||
* For details on formatting options, see @see <a href="https://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html">DateTimeFormat</a>
|
* For details on formatting options, see @see <a href="https://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html">DateTimeFormat</a>
|
||||||
*/
|
*/
|
||||||
|
@ -15,7 +15,7 @@ import java.util.function.Function;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveDouble(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
@ -15,7 +15,7 @@ import java.util.function.UnaryOperator;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveFloat(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
@ -14,7 +14,7 @@ import java.util.function.IntUnaryOperator;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveInteger(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
@ -14,7 +14,7 @@ import java.util.function.LongUnaryOperator;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveLong(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
@ -14,7 +14,7 @@ import java.util.function.Function;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveString(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
@ -15,7 +15,7 @@ import java.util.function.LongToDoubleFunction;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveDouble(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
@ -14,7 +14,7 @@ import java.util.function.LongFunction;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveFloat(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
@ -14,7 +14,7 @@ import java.util.function.LongToIntFunction;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveInteger(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
@ -14,7 +14,7 @@ import java.util.function.LongUnaryOperator;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveLong(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
@ -14,7 +14,7 @@ import java.util.function.LongFunction;
|
|||||||
* name is fixed or a generated variable name from a provided function.
|
* name is fixed or a generated variable name from a provided function.
|
||||||
* Note that the input type is not that suitable for constructing names,
|
* Note that the input type is not that suitable for constructing names,
|
||||||
* so this is more likely to be used in an indirect naming pattern like
|
* so this is more likely to be used in an indirect naming pattern like
|
||||||
* <pre>SaveDouble(Load('id'))</pre>
|
* SaveString(Load('id'))
|
||||||
*/
|
*/
|
||||||
@Categories(Category.state)
|
@Categories(Category.state)
|
||||||
@ThreadSafeMapper
|
@ThreadSafeMapper
|
||||||
|
Loading…
Reference in New Issue
Block a user