Package org.apache.solr.bench.generators
Class IntegersDSL
- java.lang.Object
 - 
- org.apache.solr.bench.generators.IntegersDSL
 
 
- 
public class IntegersDSL extends Object
The type Integers dsl. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description classIntegersDSL.IntegerDomainBuilderThe type Integer domain builder. 
- 
Constructor Summary
Constructors Constructor Description IntegersDSL() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrGen<Integer>all()Generates all possible integers in Java bounded below by Integer.MIN_VALUE and above by Integer.MAX_VALUE.SolrGen<Integer>allPositive()Generates all possible positive integers in Java, bounded above by Integer.MAX_VALUE.SolrGen<Integer>allPositiveWithMaxCardinality(int maxCardinality)All positive with max cardinality solr gen.SolrGen<Integer>allWithMaxCardinality(int maxCardinality)All with max cardinality solr gen.SolrGen<Integer>between(int startInclusive, int endInclusive)Generates Integers within the interval specified with an inclusive lower and upper bound.SolrGen<Integer>between(int startInclusive, int endInclusive, int maxCardinality)Generates Integers within the interval specified with an inclusive lower and upper bound.IntegersDSL.IntegerDomainBuilderfrom(int startInclusive)Constructs a IntegerDomainBuilder object with an inclusive lower boundSolrGen<Integer>incrementing()Incrementing SolrGen. 
 - 
 
- 
- 
Method Detail
- 
from
public IntegersDSL.IntegerDomainBuilder from(int startInclusive)
Constructs a IntegerDomainBuilder object with an inclusive lower bound- Parameters:
 startInclusive- - lower bound of domain- Returns:
 - an IntegerDomainBuilder
 
 
- 
all
public SolrGen<Integer> 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
public SolrGen<Integer> allWithMaxCardinality(int maxCardinality)
All with max cardinality solr gen.- Parameters:
 maxCardinality- the max cardinality- Returns:
 - the solr gen
 
 
- 
allPositive
public SolrGen<Integer> allPositive()
Generates all possible positive integers in Java, bounded above by Integer.MAX_VALUE.- Returns:
 - a Source of type Integer
 
 
- 
allPositiveWithMaxCardinality
public SolrGen<Integer> allPositiveWithMaxCardinality(int maxCardinality)
All positive with max cardinality solr gen.- Parameters:
 maxCardinality- the max cardinality- Returns:
 - the solr gen
 
 
- 
incrementing
public SolrGen<Integer> 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
public SolrGen<Integer> between(int startInclusive, int endInclusive)
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
public SolrGen<Integer> between(int startInclusive, int endInclusive, int maxCardinality)
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
 
 
 - 
 
 -