KeyConverter<java.lang.String>public final class AppIdKeyConverter extends java.lang.Object implements KeyConverter<java.lang.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 | Description |
|---|---|
AppIdKeyConverter() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
decode(byte[] appIdBytes) |
Decodes a byte array and returns a key of type T.
|
byte[] |
encode(java.lang.String appIdStr) |
Encodes a key as a byte array.
|
static int |
getKeySize() |
Returns the size of app id after encoding.
|
public byte[] encode(java.lang.String appIdStr)
KeyConverterencode in interface KeyConverter<java.lang.String>appIdStr - key to be encoded.public java.lang.String decode(byte[] appIdBytes)
KeyConverterdecode in interface KeyConverter<java.lang.String>appIdBytes - byte representationpublic static int getKeySize()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.