StringHelper
object StringHelper
Methods for manipulating strings.
Functions
Link copied to clipboard
Compares two BytesRef, element by element, and returns the number of elements common to both arrays (from the start of each). This method assumes currentTerm comes after priorTerm.
Link copied to clipboard
Helper method to render an ID as a string, for debugging
Link copied to clipboard
Just converts each int in the incoming IntsRef to each byte in the returned [ ], throwing IllegalArgumentException if any int value is out of bounds for a byte.
Link copied to clipboard
Generates 128-bit hash from the byte array with the given offset, length and seed.
Link copied to clipboard
Returns the MurmurHash3_x86_32 hash. Original source/tests at https://github.com/yonik/java_util/
Link copied to clipboard
Link copied to clipboard
Returns true iff the ref starts with the given prefix. Otherwise false * .