Class DoubleSequence
java.lang.Object
io.nosqlbench.virtdata.lib.vectors.primitive.DoubleSequence
- All Implemented Interfaces:
LongToDoubleFunction
- Direct Known Subclasses:
DoubleCache,UnitSteps
A VectorSequence is a sequence of vectors which are a deterministic
map between a set of ordinal values and vector values. Ideally, they
are computed with closed-form functions. If not, they should
be pre-computed in cached.
Although each element is provided in an array, this is simply a wrapper
for one-to-many cardinality which avoids auto-boxing. If a user of DoubleSequence
does not understand one-to-many semantics and receives values longer than 1 element,
then an error should be thrown.
-
Field Details
-
cardinality
protected final long cardinality
-
-
Constructor Details
-
DoubleSequence
public DoubleSequence(long cardinality)
-
-
Method Details
-
getCardinality
public long getCardinality()- Returns:
- the number of unique vectors produced.
-