Package org.elasticsearch.common.lucene
Class BytesRefs
- java.lang.Object
-
- org.elasticsearch.common.lucene.BytesRefs
-
public class BytesRefs extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BytesRefs()
-
Method Summary
Modifier and Type Method Description static org.apache.lucene.util.BytesRef
toBytesRef(java.lang.Object value)
Converts an object value to BytesRef.static org.apache.lucene.util.BytesRef
toBytesRef(java.lang.Object value, org.apache.lucene.util.BytesRefBuilder spare)
static java.lang.String
toString(java.lang.Object value)
Converts a value to a string, taking special care if its aBytesRef
to callBytesRef.utf8ToString()
.
-
-
-
Method Detail
-
toString
public static java.lang.String toString(java.lang.Object value)
Converts a value to a string, taking special care if its aBytesRef
to callBytesRef.utf8ToString()
.
-
toBytesRef
public static org.apache.lucene.util.BytesRef toBytesRef(java.lang.Object value)
Converts an object value to BytesRef.
-
toBytesRef
public static org.apache.lucene.util.BytesRef toBytesRef(java.lang.Object value, org.apache.lucene.util.BytesRefBuilder spare)
-
-