Package org.apache.solr.bench.generators
Class StringsDSL
java.lang.Object
org.apache.solr.bench.generators.StringsDSL
The type Strings dsl.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe type Realistic unicode generator builder.static classThe type String generator builder.static classThe type Word list generator builder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs a StringGeneratorBuilder which will build Strings composed of all defined code pointsalpha()Alpha string generator builder.Alpha numeric string generator builder.ascii()Constructs a StringGeneratorBuilder which will build Strings composed of Unicode Ascii AlphabetConstructs a StringGeneratorBuilder which will build Strings composed of Unicode Basic Latin AlphabetConstructs a StringGeneratorBuilder which will build Strings composed of all defined code points in the Basic Multilingual PlanebetweenCodePoints(int minInclusive, int maxInclusive) Strings with characters between two (inclusive) code pointsnumeric()Generates integers as Strings, and shrinks towards "0".numericBetween(int startInclusive, int endInclusive) Generates integers within the interval as Strings.realisticUnicode(int minLength, int maxLength) Realistic unicode generator builder.wordList()Word list word list generator builder.
-
Constructor Details
-
StringsDSL
public StringsDSL()
-
-
Method Details
-
wordList
Word list word list generator builder.- Returns:
- the word list generator builder
-
numeric
Generates integers as Strings, and shrinks towards "0".- Returns:
- a Source of type String
-
numericBetween
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
Constructs a StringGeneratorBuilder which will build Strings composed of all defined code points- Returns:
- a StringGeneratorBuilder
-
realisticUnicode
Realistic unicode generator builder. No whitespace.- Parameters:
minLength- the min lengthmaxLength- the max length- Returns:
- the realistic unicode generator builder
-
basicMultilingualPlaneAlphabet
Constructs a StringGeneratorBuilder which will build Strings composed of all defined code points in the Basic Multilingual Plane- Returns:
- a StringGeneratorBuilder
-
basicLatinAlphabet
Constructs a StringGeneratorBuilder which will build Strings composed of Unicode Basic Latin Alphabet- Returns:
- a StringGeneratorBuilder
-
alpha
Alpha string generator builder.- Returns:
- the string generator builder
-
alphaNumeric
Alpha numeric string generator builder.- Returns:
- the string generator builder
-
ascii
Constructs a StringGeneratorBuilder which will build Strings composed of Unicode Ascii Alphabet- Returns:
- a StringGeneratorBuilder
-
betweenCodePoints
Strings with characters between two (inclusive) code points- Parameters:
minInclusive- minimum code pointmaxInclusive- max code point- Returns:
- Builder for strings
-