Class Uid

org.elasticsearch.index.mapper.Uid

public final class Uid extends
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static char
     
    static byte
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     type,  id)
     
  • Method Summary

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

    Methods inherited from class java.lang.

    , , , , , , ,
  • Field Details

  • Constructor Details

    • Uid

      public Uid( type,  id)
  • Method Details

    • type

      public  type()
    • id

      public  id()
    • equals

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

      public int hashCode()
      Overrides:
       in class 
    • toString

      public  toString()
      Overrides:
       in class 
    • encodeId

      public static org.apache.lucene.util.BytesRef encodeId( 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  decodeId(byte[] idBytes)
      Decode an indexed id back to its original form.
      See Also:
      encodeId(java.lang.String)
    • decodeId

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