java.lang.Object
org.elasticsearch.index.mapper.Uid
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEscape byte prepended to base64-decoded IDs when the first byte is >= 0xfdstatic final byte -
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 StringdecodeId(org.apache.lucene.util.BytesRef idBytes) Decode an indexed id back to its original form.static org.apache.lucene.util.BytesRefEncode an id for storage in the index.
-
Field Details
-
DELIMITER_BYTE
public static final byte DELIMITER_BYTE- See Also:
-
BASE64_ESCAPE
public static final int BASE64_ESCAPEEscape byte prepended to base64-decoded IDs when the first byte is >= 0xfd- See Also:
-
-
Method Details
-
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
Decode an indexed id back to its original form.- See Also:
-
decodeId
Decode an indexed id back to its original form.- See Also:
-
decodeId
Decode an indexed id back to its original form.- See Also:
-