Package org.apache.solr.bench.generators
Class LongsDSL
- java.lang.Object
-
- org.apache.solr.bench.generators.LongsDSL
-
public class LongsDSL extends Object
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 Modifier and Type Class Description class
LongsDSL.LongDomainBuilder
-
Constructor Summary
Constructors Constructor Description LongsDSL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrGen<Long>
all()
Generates all possible Longs in Java bounded below by Long.MIN_VALUE and above by Long.MAX_VALUE.SolrGen<Long>
between(long startInclusive, long endInclusive)
Generates Longs within the interval specified with an inclusive lower and upper bound.LongsDSL.LongDomainBuilder
from(long startInclusive)
Constructs a LongDomainBuilder object with an inclusive lower bound
-
-
-
Method Detail
-
from
public LongsDSL.LongDomainBuilder from(long startInclusive)
Constructs a LongDomainBuilder object with an inclusive lower bound- Parameters:
startInclusive
- - lower bound of domain- Returns:
- a LongDomainBuilder
-
all
public SolrGen<Long> 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
public SolrGen<Long> between(long startInclusive, long endInclusive)
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
-
-