Package org.apache.solr.bench.generators
Class IntegersDSL
java.lang.Object
org.apache.solr.bench.generators.IntegersDSL
The type Integers dsl.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe type Integer domain builder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Generates all possible integers in Java bounded below by Integer.MIN_VALUE and above by Integer.MAX_VALUE.Generates all possible positive integers in Java, bounded above by Integer.MAX_VALUE.allPositiveWithMaxCardinality(int maxCardinality) All positive with max cardinality solr gen.allWithMaxCardinality(int maxCardinality) All with max cardinality solr gen.between(int startInclusive, int endInclusive) Generates Integers within the interval specified with an inclusive lower and upper bound.between(int startInclusive, int endInclusive, int maxCardinality) Generates Integers within the interval specified with an inclusive lower and upper bound.from(int startInclusive) Constructs a IntegerDomainBuilder object with an inclusive lower boundIncrementing SolrGen.
-
Constructor Details
-
IntegersDSL
public IntegersDSL()
-
-
Method Details
-
from
Constructs a IntegerDomainBuilder object with an inclusive lower bound- Parameters:
startInclusive- - lower bound of domain- Returns:
- an IntegerDomainBuilder
-
all
Generates all possible integers in Java bounded below by Integer.MIN_VALUE and above by Integer.MAX_VALUE.- Returns:
- a Source of type Integer
-
allWithMaxCardinality
All with max cardinality solr gen.- Parameters:
maxCardinality- the max cardinality- Returns:
- the solr gen
-
allPositive
Generates all possible positive integers in Java, bounded above by Integer.MAX_VALUE.- Returns:
- a Source of type Integer
-
allPositiveWithMaxCardinality
All positive with max cardinality solr gen.- Parameters:
maxCardinality- the max cardinality- Returns:
- the solr gen
-
incrementing
Incrementing SolrGen. Always returns an integer greater than the previous one. You cannot count on the increment being 1.- Returns:
- a SolrGen that returns an int greater than the previous
-
between
Generates Integers within the interval specified with an inclusive lower and upper bound.- Parameters:
startInclusive- - inclusive lower bound of domainendInclusive- - inclusive upper bound of domain- Returns:
- a Source of type Integer
-
between
Generates Integers within the interval specified with an inclusive lower and upper bound.- Parameters:
startInclusive- - inclusive lower bound of domainendInclusive- - inclusive upper bound of domainmaxCardinality- the max cardinality- Returns:
- a Source of type Integer
-