Package org.opensearch.index.mapper
Class Uid
java.lang.Object
org.opensearch.index.mapper.Uid
A documents OpenSearch id
- Opensearch.internal:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String
decodeId
(byte[] idBytes) Decode an indexed id back to its original form.static String
decodeId
(byte[] idBytes, int offset, int length) Decode an indexed id back to its original form.static org.apache.lucene.util.BytesRef
Encode an id for storage in the index.
-
Field Details
-
DELIMITER
public static final char DELIMITER- See Also:
-
DELIMITER_BYTE
public static final byte DELIMITER_BYTE- 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:
-