Companion
Properties
Maximum recursion bound for '+' and '*' replacements in .randomRegexpishString.
Operators for .randomRegexpishString.
A comparator that compares UTF-16 strings / char sequences according to Unicode code point order. This can be used to verify BytesRef order.
Functions
Return a Codec that can read any of the default codecs and formats, but always writes in the specified format.
Return a Codec that can read any of the default codecs and formats, but always writes in the specified format.
Return a Codec that can read any of the default codecs and formats, but always writes in the specified format.
Checks some basic behaviour of an AttributeImpl
Assert that the given TopDocs have the same top docs and consistent hit counts.
For debugging: tries to include br.utf8ToString(), but if that fails (because it's not valid utf8, which is fine!), just use ordinary toString.
This runs the CheckIndex tool on the index in. If any issues are hit, a RuntimeException is thrown; else, true is returned.
If failFast is true, then throw the first exception when index corruption is hit, instead of moving on to other fields/segments to look for any other corruption.
Checks that the provided iterator is well-formed.
This runs the CheckIndex tool on the Reader. If any issues are hit, a RuntimeException is thrown
Checks that the provided collection is read-only.
Returns true if the arguments are equal or within the range of allowed error (inclusive). Returns false if either of the arguments is NaN.
Returns true if the arguments are equal or within the range of allowed error (inclusive). Returns false if either of the arguments is NaN.
Returns the actual default codec (e.g. LuceneMNCodec) for this version of Lucene. This may be different from Codec.getDefault because that is randomized.
Returns the actual default docvalues format (e.g. LuceneMNDocValuesFormat) for this version of Lucene.
Returns the actual default vector format (e.g. LuceneMNKnnVectorsFormat) for this version of Lucene.
Returns the actual default postings format (e.g. LuceneMNPostingsFormat) for this version of Lucene.
Returns a random postings format that supports term ordinals
Returns a randomish big integer with 1 .. maxBytes storage.
Returns a valid (compiling) Pattern instance with random stuff inside. Be careful when applying random patterns to longer strings as certain types of patterns may explode into exponential times in backtracking implementations (such as Java's).
Returns a random binary term.
Returns a random binary with a given length
Returns random string, with a given UTF-8 byte length
Fills provided char[] with valid random unicode code unit sequence.
Randomly upcases, downcases, or leaves intact each code point in the given string
Returns random string of length between 0-20 codepoints, all codepoints within the same unicode block.
Returns random string of length up to maxLength codepoints , all codepoints within the same unicode block.
Returns random string of length between min and max codepoints, all codepoints within the same unicode block.
Returns a String that's "regexpish" (contains lots of operators typically found in regular expressions) If you call this enough times, you might get a valid regex!
Returns random string, including full unicode range.
Returns a random string up to a certain length.
just tries to configure things to keep the open file count lowish
Shutdown ExecutorService and wait for its.