Package org.apache.solr.bench.generators
Class StringsDSL
- java.lang.Object
-
- org.apache.solr.bench.generators.StringsDSL
-
public class StringsDSL extends Object
The type Strings dsl.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringsDSL.RealisticUnicodeGeneratorBuilderThe type Realistic unicode generator builder.static classStringsDSL.StringGeneratorBuilderThe type String generator builder.static classStringsDSL.WordListGeneratorBuilderThe type Word list generator builder.
-
Constructor Summary
Constructors Constructor Description StringsDSL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsDSL.StringGeneratorBuilderallPossible()Constructs a StringGeneratorBuilder which will build Strings composed of all defined code pointsStringsDSL.StringGeneratorBuilderalpha()Alpha string generator builder.StringsDSL.StringGeneratorBuilderalphaNumeric()Alpha numeric string generator builder.StringsDSL.StringGeneratorBuilderascii()Constructs a StringGeneratorBuilder which will build Strings composed of Unicode Ascii AlphabetStringsDSL.StringGeneratorBuilderbasicLatinAlphabet()Constructs a StringGeneratorBuilder which will build Strings composed of Unicode Basic Latin AlphabetStringsDSL.StringGeneratorBuilderbasicMultilingualPlaneAlphabet()Constructs a StringGeneratorBuilder which will build Strings composed of all defined code points in the Basic Multilingual PlaneStringsDSL.StringGeneratorBuilderbetweenCodePoints(int minInclusive, int maxInclusive)Strings with characters between two (inclusive) code pointsSolrGen<String>numeric()Generates integers as Strings, and shrinks towards "0".SolrGen<String>numericBetween(int startInclusive, int endInclusive)Generates integers within the interval as Strings.StringsDSL.RealisticUnicodeGeneratorBuilderrealisticUnicode(int minLength, int maxLength)Realistic unicode realistic unicode generator builder.StringsDSL.WordListGeneratorBuilderwordList()Word list word list generator builder.
-
-
-
Method Detail
-
wordList
public StringsDSL.WordListGeneratorBuilder wordList()
Word list word list generator builder.- Returns:
- the word list generator builder
-
numeric
public SolrGen<String> numeric()
Generates integers as Strings, and shrinks towards "0".- Returns:
- a Source of type String
-
numericBetween
public SolrGen<String> numericBetween(int startInclusive, int endInclusive)
Generates integers within the interval as Strings.- Parameters:
startInclusive- - lower inclusive bound of integer domainendInclusive- - upper inclusive bound of integer domain- Returns:
- a Source of type String
-
allPossible
public StringsDSL.StringGeneratorBuilder allPossible()
Constructs a StringGeneratorBuilder which will build Strings composed of all defined code points- Returns:
- a StringGeneratorBuilder
-
realisticUnicode
public StringsDSL.RealisticUnicodeGeneratorBuilder realisticUnicode(int minLength, int maxLength)
Realistic unicode realistic unicode generator builder.- Parameters:
minLength- the min lengthmaxLength- the max length- Returns:
- the realistic unicode generator builder
-
basicMultilingualPlaneAlphabet
public StringsDSL.StringGeneratorBuilder basicMultilingualPlaneAlphabet()
Constructs a StringGeneratorBuilder which will build Strings composed of all defined code points in the Basic Multilingual Plane- Returns:
- a StringGeneratorBuilder
-
basicLatinAlphabet
public StringsDSL.StringGeneratorBuilder basicLatinAlphabet()
Constructs a StringGeneratorBuilder which will build Strings composed of Unicode Basic Latin Alphabet- Returns:
- a StringGeneratorBuilder
-
alpha
public StringsDSL.StringGeneratorBuilder alpha()
Alpha string generator builder.- Returns:
- the string generator builder
-
alphaNumeric
public StringsDSL.StringGeneratorBuilder alphaNumeric()
Alpha numeric string generator builder.- Returns:
- the string generator builder
-
ascii
public StringsDSL.StringGeneratorBuilder ascii()
Constructs a StringGeneratorBuilder which will build Strings composed of Unicode Ascii Alphabet- Returns:
- a StringGeneratorBuilder
-
betweenCodePoints
public StringsDSL.StringGeneratorBuilder betweenCodePoints(int minInclusive, int maxInclusive)
Strings with characters between two (inclusive) code points- Parameters:
minInclusive- minimum code pointmaxInclusive- max code point- Returns:
- Builder for strings
-
-