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