public interface KeyFieldCodec
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkEncodeOverflow(byte[] keyValue)
Returns true if the given encoded value will overflow the underlying key
field.
|
Object |
decode(byte[] value)
Returns the object representation for the given encoded bytes value.
|
byte[] |
encode(Object value)
Returns the encoded bytes representation for the given object or literal
value.
|
byte[] |
encodeNext(Object value)
Returns the encoded "next" bytes representation for the given object or
literal value, where the next value depends on the coded implementation and
may typically be the lexicographic next value.
|
boolean |
isLexicographic()
Return true if the encoded values support lexicographic ordering.
|
boolean |
isTransforming()
Return true if the encoded values are fundamentally transformed father than
formatted or padded in some way.
|
boolean isLexicographic()
boolean isTransforming()
boolean checkEncodeOverflow(byte[] keyValue)
keyValue - byte[] encode(Object value)
value - the object or literal valueKeyFieldOverflowException - if the encoded data exceeds the capacity of the target fieldObject decode(byte[] value)
value - encoded bytes valuebyte[] encodeNext(Object value)
value - the object or literal valueKeyFieldOverflowException - if the encoded data exceeds the capacity of the target fieldCopyright © 2024. All Rights Reserved.