Package org.apache.storm.state
Interface StateEncoder<K,V,KENCODEDT,VENCODEDT>   
- All Known Implementing Classes:
- DefaultStateEncoder
public interface StateEncoder<K,V,KENCODEDT,VENCODEDT>   
The interface of State Encoder.
- 
Method SummaryModifier and TypeMethodDescriptionDecode key.decodeValue(VENCODEDT encodedValue) Decode value.Encode key.encodeValue(V value) Encode value.Get the tombstone value (deletion mark).
- 
Method Details- 
encodeKeyEncode key.- Parameters:
- key- the value of key (K type)
- Returns:
- the encoded value of key (KENCODEDT type)
 
- 
encodeValueEncode value.- Parameters:
- value- the value of value (V type)
- Returns:
- the encoded value of value (VENCODEDT type)
 
- 
decodeKeyDecode key.- Parameters:
- encodedKey- the value of key (KRAW type)
- Returns:
- the decoded value of key (K type)
 
- 
decodeValueDecode value.- Parameters:
- encodedValue- the value of key (VENCODEDT type)
- Returns:
- the decoded value of key (V type)
 
- 
getTombstoneValueVENCODEDT getTombstoneValue()Get the tombstone value (deletion mark).- Returns:
- the tomestone value (VENCODEDT type)
 
 
-