public final class LongKeyConverter extends Object implements KeyConverter<Long>
| Constructor and Description | 
|---|
| LongKeyConverter() | 
| Modifier and Type | Method and Description | 
|---|---|
| Long | decode(byte[] bytes)Decodes a byte array and returns a key of type T. | 
| byte[] | encode(Long key)Encodes a key as a byte array. | 
public byte[] encode(Long key)
KeyConverterencode in interface KeyConverter<Long>key - key to be encoded.public Long decode(byte[] bytes)
KeyConverterdecode in interface KeyConverter<Long>bytes - byte representationCopyright © 2008–2023 Apache Software Foundation. All rights reserved.