public class LexicoSimpleKeyFieldCodec extends DefaultKeyFieldCodec implements KeyFieldCodec
KeyFieldCodec which simply encodes data as a
lexicographic string value.Type,
DataFlavorkeyField| Constructor and Description |
|---|
LexicoSimpleKeyFieldCodec(KeyFieldMapping keyField) |
| 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.
|
org.plasma.sdo.DataFlavor |
getDataFlavor() |
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.
|
public LexicoSimpleKeyFieldCodec(KeyFieldMapping keyField)
public boolean isLexicographic()
KeyFieldCodecisLexicographic in interface KeyFieldCodecpublic boolean isTransforming()
KeyFieldCodecisTransforming in interface KeyFieldCodecpublic byte[] encode(Object value)
KeyFieldCodecencode in interface KeyFieldCodecvalue - the object or literal valuepublic boolean checkEncodeOverflow(byte[] keyValue)
KeyFieldCodeccheckEncodeOverflow in interface KeyFieldCodecpublic byte[] encodeNext(Object value)
KeyFieldCodecencodeNext in interface KeyFieldCodecvalue - the object or literal valuepublic Object decode(byte[] value)
KeyFieldCodecdecode in interface KeyFieldCodecvalue - encoded bytes valuepublic org.plasma.sdo.DataFlavor getDataFlavor()
Copyright © 2024. All Rights Reserved.