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