java.lang.Object
org.elasticsearch.common.lucene.BytesRefs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.util.BytesRef
checkIndexableLength
(org.apache.lucene.util.BytesRef input) Checks that the input is not longer thanIndexWriter.MAX_TERM_LENGTH
static org.apache.lucene.util.BytesRef
toBytesRef
(Object value) Converts an object value to BytesRef.static String
Converts a value to a string, taking special care if its aBytesRef
to callBytesRef.utf8ToString()
.
-
Constructor Details
-
BytesRefs
public BytesRefs()
-
-
Method Details
-
toString
Converts a value to a string, taking special care if its aBytesRef
to callBytesRef.utf8ToString()
. -
toBytesRef
Converts an object value to BytesRef. -
checkIndexableLength
public static org.apache.lucene.util.BytesRef checkIndexableLength(org.apache.lucene.util.BytesRef input) Checks that the input is not longer thanIndexWriter.MAX_TERM_LENGTH
- Parameters:
input
- a BytesRef- Returns:
- the same BytesRef, if no exception has been thrown
- Throws:
IllegalArgumentException
- if the input is too long
-