Class Uid

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

public final class Uid extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • type

      public String type()
    • id

      public String id()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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(byte[])
    • decodeId

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

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