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 a BytesRef to call BytesRef.utf8ToString().

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BytesRefs

      public BytesRefs()
  • Method Details

    • toString

      public static java.lang.String toString​(java.lang.Object value)
      Converts a value to a string, taking special care if its a BytesRef to call BytesRef.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)