Interface KeyConverter<T>
- All Known Implementing Classes:
AppIdKeyConverter,EventColumnNameConverter,LongKeyConverter,StringKeyConverter
public interface KeyConverter<T>
Interface which has to be implemented for encoding and decoding row keys and
columns.
-
Method Summary
-
Method Details
-
encode
Encodes a key as a byte array.- Parameters:
key- key to be encoded.- Returns:
- a byte array.
-
decode
Decodes a byte array and returns a key of type T.- Parameters:
bytes- byte representation- Returns:
- an object(key) of type T which has been constructed after decoding the bytes.
-