Package org.elasticsearch.index.mapper
Class Uid
java.lang.Object
org.elasticsearch.index.mapper.Uid
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecodeId(byte[] idBytes)Decode an indexed id back to its original form.static StringdecodeId(byte[] idBytes, int offset, int length)Decode an indexed id back to its original form.static org.apache.lucene.util.BytesRefEncode an id for storage in the index.booleaninthashCode()id()toString()type() 
- 
Field Details
- 
DELIMITER
public static final char DELIMITER- See Also:
 - Constant Field Values
 
 - 
DELIMITER_BYTE
public static final byte DELIMITER_BYTE- See Also:
 - Constant Field Values
 
 
 - 
 - 
Constructor Details
- 
Uid
 
 - 
 - 
Method Details
- 
type
 - 
id
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 - 
encodeId
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
Decode an indexed id back to its original form.- See Also:
 encodeId(java.lang.String)
 - 
decodeId
Decode an indexed id back to its original form.- See Also:
 encodeId(java.lang.String)
 
 -