Interface KeyConverterToString<T>
public interface KeyConverterToString<T>
Interface which has to be implemented for encoding and decoding row keys or
column qualifiers as string.
-
Method Summary
Modifier and TypeMethodDescriptiondecodeFromString(String encodedKey) Decode row key from string to a key of type T.encodeAsString(T key) Encode key as string.
-
Method Details
-
encodeAsString
Encode key as string.- Parameters:
key- of type T to be encoded as string.- Returns:
- encoded value as string.
-
decodeFromString
Decode row key from string to a key of type T.- Parameters:
encodedKey- string representation of row key- Returns:
- type T which has been constructed after decoding string.
-