Example usage for Java org.apache.lucene.util StringHelper fields, constructors, methods, implement or subclass
The text is from its open source code.
int | GOOD_FAST_HASH_SEED Pass this as the seed to #murmurhash3_x86_32 . |
String | idToString(byte id[]) Helper method to render an ID as a string, for debugging Returns the string (null) if the id is null. |
int | murmurhash3_x86_32(BytesRef bytes, int seed) |
int | murmurhash3_x86_32(byte[] data, int offset, int len, int seed) Returns the MurmurHash3_x86_32 hash. |
byte[] | randomId() Generates a non-cryptographic globally unique id. |
boolean | startsWith(byte[] ref, BytesRef prefix) Returns true iff the ref starts with the given prefix. |
boolean | startsWith(BytesRef ref, BytesRef prefix) Returns true iff the ref starts with the given prefix. |