java.lang.Object
org.elasticsearch.index.mapper.Uid

public final class Uid extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    decodeId(byte[] idBytes)
    Decode an indexed id back to its original form.
    static String
    decodeId(byte[] idBytes, int offset, int length)
    Decode an indexed id back to its original form.
    static String
    decodeId(org.apache.lucene.util.BytesRef idBytes)
    Decode an indexed id back to its original form.
    static org.apache.lucene.util.BytesRef
    Encode an id for storage in the index.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • encodeId

      public static org.apache.lucene.util.BytesRef encodeId(String id)
      Encode an id for storage in the index. This encoding is optimized for numeric and base64 ids, which are encoded in a much denser way than what UTF8 would do.
      See Also:
    • decodeId

      public static String decodeId(org.apache.lucene.util.BytesRef idBytes)
      Decode an indexed id back to its original form.
      See Also:
    • decodeId

      public static String decodeId(byte[] idBytes)
      Decode an indexed id back to its original form.
      See Also:
    • decodeId

      public static String decodeId(byte[] idBytes, int offset, int length)
      Decode an indexed id back to its original form.
      See Also: