Package org.apache.solr.bench.generators
Class StringsDSL.StringGeneratorBuilder
- java.lang.Object
-
- org.apache.solr.bench.generators.StringsDSL.StringGeneratorBuilder
-
- Enclosing class:
- StringsDSL
public static class StringsDSL.StringGeneratorBuilder extends Object
The type String generator builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsDSL.StringGeneratorBuilder
maxCardinality(int max)
Max cardinality string generator builder.StringsDSL.StringGeneratorBuilder
maxCardinality(org.quicktheories.core.Gen<Integer> max)
Max cardinality string generator builder.StringsDSL.StringGeneratorBuilder
multi(int count)
Multi string generator builder.SolrGen<String>
ofFixedNumberOfCodePoints(int codePoints)
Generates Strings of a fixed number of code points.SolrGen<String>
ofLength(int fixedLength)
Generates Strings of a fixed length.SolrGen<String>
ofLengthBetween(int minLength, int maxLength)
Generates Strings of length bounded between minLength and maxLength inclusively.
-
-
-
Method Detail
-
ofFixedNumberOfCodePoints
public SolrGen<String> ofFixedNumberOfCodePoints(int codePoints)
Generates Strings of a fixed number of code points.- Parameters:
codePoints
- - the fixed number of code points for the String- Returns:
- a a Source of type String
-
ofLength
public SolrGen<String> ofLength(int fixedLength)
Generates Strings of a fixed length.- Parameters:
fixedLength
- - the fixed length for the Strings- Returns:
- a Source of type String
-
maxCardinality
public StringsDSL.StringGeneratorBuilder maxCardinality(int max)
Max cardinality string generator builder.- Parameters:
max
- the max- Returns:
- the string generator builder
-
maxCardinality
public StringsDSL.StringGeneratorBuilder maxCardinality(org.quicktheories.core.Gen<Integer> max)
Max cardinality string generator builder.- Parameters:
max
- the max- Returns:
- the string generator builder
-
multi
public StringsDSL.StringGeneratorBuilder multi(int count)
Multi string generator builder.- Parameters:
count
- the count- Returns:
- the string generator builder
-
ofLengthBetween
public SolrGen<String> ofLengthBetween(int minLength, int maxLength)
Generates Strings of length bounded between minLength and maxLength inclusively.- Parameters:
minLength
- - minimum inclusive length of StringmaxLength
- - maximum inclusive length of String- Returns:
- a Source of type String
-
-