Class KeyWithChunkingSuffixSerializer
- java.lang.Object
-
- com.linkedin.venice.serialization.KeyWithChunkingSuffixSerializer
-
public class KeyWithChunkingSuffixSerializer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IGNORED_TOPIC_NAME
static ChunkedKeySuffix
NON_CHUNK_KEY_SUFFIX
-
Constructor Summary
Constructors Constructor Description KeyWithChunkingSuffixSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
serializeChunkedKey(byte[] key, ChunkedKeySuffix chunkedKeySuffix)
byte[]
serializeNonChunkedKey(byte[] key)
java.nio.ByteBuffer
serializeNonChunkedKey(java.nio.ByteBuffer key)
java.nio.ByteBuffer
serializeNonChunkedKeyAsByteBuffer(byte[] key)
-
-
-
Field Detail
-
IGNORED_TOPIC_NAME
public static final java.lang.String IGNORED_TOPIC_NAME
- See Also:
- Constant Field Values
-
NON_CHUNK_KEY_SUFFIX
public static final ChunkedKeySuffix NON_CHUNK_KEY_SUFFIX
-
-
Method Detail
-
serializeChunkedKey
public java.nio.ByteBuffer serializeChunkedKey(byte[] key, ChunkedKeySuffix chunkedKeySuffix)
- Returns:
- an exactly-sized
ByteBuffer
containing the key appended by the suffix
-
serializeNonChunkedKeyAsByteBuffer
public java.nio.ByteBuffer serializeNonChunkedKeyAsByteBuffer(byte[] key)
- Returns:
- an exactly-sized
ByteBuffer
containing the key appended by the standard suffix for non-chunked keys
-
serializeNonChunkedKey
public byte[] serializeNonChunkedKey(byte[] key)
-
serializeNonChunkedKey
public java.nio.ByteBuffer serializeNonChunkedKey(java.nio.ByteBuffer key)
-
-