public final class AppIdKeyConverter extends Object implements KeyConverter<String>
ApplicationId for row keys.
 App ID is stored in row key as 12 bytes, cluster timestamp section of app id
 (long - 8 bytes) followed by sequence id section of app id (int - 4 bytes).| Constructor and Description | 
|---|
| AppIdKeyConverter() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | decode(byte[] appIdBytes)Decodes a byte array and returns a key of type T. | 
| byte[] | encode(String appIdStr)Encodes a key as a byte array. | 
| static int | getKeySize()Returns the size of app id after encoding. | 
public byte[] encode(String appIdStr)
KeyConverterencode in interface KeyConverter<String>appIdStr - key to be encoded.public String decode(byte[] appIdBytes)
KeyConverterdecode in interface KeyConverter<String>appIdBytes - byte representationpublic static int getKeySize()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.