Package io.confluent.serializers
Interface OrderedKeyPrefixedSerde<E extends Enum,T>
- All Superinterfaces:
AutoCloseable,Closeable,org.apache.kafka.common.serialization.Deserializer<org.apache.kafka.common.utils.Bytes>,OrderedKeyUberSerde<T>,org.apache.kafka.common.serialization.Serde<org.apache.kafka.common.utils.Bytes>,SerdeWithJson<org.apache.kafka.common.utils.Bytes>,org.apache.kafka.common.serialization.Serializer<org.apache.kafka.common.utils.Bytes>,UberSerde<org.apache.kafka.common.utils.Bytes>
- All Known Implementing Classes:
OrderedKeyPrefixedProtoSerde
-
Field Summary
Fields inherited from interface io.confluent.serializers.UberSerde
MAGIC_BYTE_ORDERED_KEY, MAGIC_BYTE_PROTOBUF, MAGIC_BYTE_STRING -
Method Summary
Modifier and TypeMethodDescriptionextractPrefix(org.apache.kafka.common.utils.Bytes key) Extracts the prefix from the byte array of the keyprefix()Returns the prefix used for serializing keysprefixKeySerde(int numFields) Methods inherited from interface org.apache.kafka.common.serialization.Deserializer
deserialize, deserialize, deserializeMethods inherited from interface io.confluent.serializers.OrderedKeyUberSerde
key, numFields, toHexString, toProtoMethods inherited from interface org.apache.kafka.common.serialization.Serde
deserializer, serializerMethods inherited from interface io.confluent.serializers.SerdeWithJson
deserialize, fromJson, serialize, toJsonMethods inherited from interface org.apache.kafka.common.serialization.Serializer
serialize, serialize
-
Method Details
-
prefix
E prefix()Returns the prefix used for serializing keys -
extractPrefix
Extracts the prefix from the byte array of the key -
prefixKeySerde
- Specified by:
prefixKeySerdein interfaceOrderedKeyUberSerde<E extends Enum>
-