Class Uid

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

public final class Uid extends Object
  • 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(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: