public class HashedBytesRef extends Object
BytesRef
that also caches the hashCode for it.Modifier and Type | Field and Description |
---|---|
org.apache.lucene.util.BytesRef |
bytes |
int |
hash |
Constructor and Description |
---|
HashedBytesRef() |
HashedBytesRef(org.apache.lucene.util.BytesRef bytes) |
HashedBytesRef(org.apache.lucene.util.BytesRef bytes,
int hash) |
HashedBytesRef(String bytes) |
Modifier and Type | Method and Description |
---|---|
HashedBytesRef |
deepCopy() |
static HashedBytesRef |
deepCopyOf(HashedBytesRef other) |
boolean |
equals(Object other) |
int |
hashCode() |
HashedBytesRef |
reset(org.apache.lucene.util.BytesRef bytes,
int hash) |
HashedBytesRef |
resetHashCode() |
String |
toString() |
public HashedBytesRef()
public HashedBytesRef(String bytes)
public HashedBytesRef(org.apache.lucene.util.BytesRef bytes)
public HashedBytesRef(org.apache.lucene.util.BytesRef bytes, int hash)
public HashedBytesRef resetHashCode()
public HashedBytesRef reset(org.apache.lucene.util.BytesRef bytes, int hash)
public HashedBytesRef deepCopy()
public static HashedBytesRef deepCopyOf(HashedBytesRef other)
Copyright © 2009–2015. All rights reserved.