Package org.apache.solr.bench.generators
Class LongsDSL
java.lang.Object
org.apache.solr.bench.generators.LongsDSL
A Class for creating Long Sources that will produce Longs within a set interval and will shrink
within this domain.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Generates all possible Longs in Java bounded below by Long.MIN_VALUE and above by Long.MAX_VALUE.between(long startInclusive, long endInclusive) Generates Longs within the interval specified with an inclusive lower and upper bound.from(long startInclusive) Constructs a LongDomainBuilder object with an inclusive lower bound
-
Constructor Details
-
LongsDSL
public LongsDSL()
-
-
Method Details
-
from
Constructs a LongDomainBuilder object with an inclusive lower bound- Parameters:
startInclusive- - lower bound of domain- Returns:
- a LongDomainBuilder
-
all
Generates all possible Longs in Java bounded below by Long.MIN_VALUE and above by Long.MAX_VALUE.- Returns:
- a Source of type Long
-
between
Generates Longs within the interval specified with an inclusive lower and upper bound.The Source is weighted, so it is likely to generate the upper and lower limits of the domain one or more times.
- Parameters:
startInclusive- - inclusive lower bound of domainendInclusive- - inclusive upper bound of domain- Returns:
- a Source of type Long
-