Class HashedDoubleVectors
java.lang.Object
io.nosqlbench.virtdata.lib.vectors.primitive.HashedDoubleVectors
- All Implemented Interfaces:
LongFunction<double[]>
Construct an arbitrarily large vector with hashes. The initial value is assumed to be non-hashed, and is thus hashed
on input to ensure that inputs are non-contiguous. Once the starting value is hashed, the sequence of long values is
walked and each value added to the vector is hashed from the values in that sequence.
-
Constructor Summary
ConstructorsConstructorDescriptionHashedDoubleVectors(Object sizer) HashedDoubleVectors(Object sizer, double min, double max) HashedDoubleVectors(Object sizer, Object valueFunc) Build a double[] generator with a given size value or size function, and the given long->double function. -
Method Summary
-
Constructor Details
-
HashedDoubleVectors
Build a double[] generator with a given size value or size function, and the given long->double function.- Parameters:
sizer- Either a numeric type which sets a fixed dimension, or a long->int function to derive it uniquely for each inputvalueFunc- A long->double function
-
HashedDoubleVectors
-
HashedDoubleVectors
-
-
Method Details
-
apply
public double[] apply(long value) - Specified by:
applyin interfaceLongFunction<double[]>
-