public interface StateEncoder<K,V,KENCODEDT,VENCODEDT>
The interface of State Encoder.
Modifier and Type | Method and Description |
---|---|
K |
decodeKey(KENCODEDT encodedKey)
Decode key.
|
V |
decodeValue(VENCODEDT encodedValue)
Decode value.
|
KENCODEDT |
encodeKey(K key)
Encode key.
|
VENCODEDT |
encodeValue(V value)
Encode value.
|
VENCODEDT |
getTombstoneValue()
Get the tombstone value (deletion mark).
|
KENCODEDT encodeKey(K key)
Encode key.
key
- the value of key (K type)VENCODEDT encodeValue(V value)
Encode value.
value
- the value of value (V type)K decodeKey(KENCODEDT encodedKey)
Decode key.
encodedKey
- the value of key (KRAW type)V decodeValue(VENCODEDT encodedValue)
Decode value.
encodedValue
- the value of key (VENCODEDT type)VENCODEDT getTombstoneValue()
Get the tombstone value (deletion mark).
Copyright © 2020 The Apache Software Foundation. All rights reserved.