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 Type
    Method
    Description
    Decode row key from string to a key of type T.
    Encode key as string.
  • Method Details

    • encodeAsString

      String encodeAsString(T key)
      Encode key as string.
      Parameters:
      key - of type T to be encoded as string.
      Returns:
      encoded value as string.
    • decodeFromString

      T decodeFromString(String encodedKey)
      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.