Class StringsDSL

java.lang.Object
org.apache.solr.bench.generators.StringsDSL

public class StringsDSL extends Object
The type Strings dsl.
  • Constructor Details

    • StringsDSL

      public StringsDSL()
  • Method Details

    • 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 domain
      endInclusive - - 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 generator builder. No whitespace.
      Parameters:
      minLength - the min length
      maxLength - 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

      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

      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 point
      maxInclusive - max code point
      Returns:
      Builder for strings