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

public interface OrderedKeyPrefixedSerde<E extends Enum,T> extends OrderedKeyUberSerde<T>
  • Method Details

    • prefix

      E prefix()
      Returns the prefix used for serializing keys
    • extractPrefix

      E extractPrefix(org.apache.kafka.common.utils.Bytes key)
      Extracts the prefix from the byte array of the key
    • prefixKeySerde

      OrderedKeyPrefixedSerde<E,T> prefixKeySerde(int numFields)
      Specified by:
      prefixKeySerde in interface OrderedKeyUberSerde<E extends Enum>