T - The type created by the keyed deserialization schema.@Deprecated @PublicEvolving public interface KeyedDeserializationSchema<T> extends KafkaDeserializationSchema<T>
| 限定符和类型 | 方法和说明 |
|---|---|
T |
deserialize(byte[] messageKey,
byte[] message,
String topic,
int partition,
long offset)
已过时。
Deserializes the byte message.
|
default T |
deserialize(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record)
已过时。
Deserializes the Kafka record.
|
deserialize, isEndOfStream, openT deserialize(byte[] messageKey, byte[] message, String topic, int partition, long offset) throws IOException
messageKey - the key as a byte array (null if no key has been set).message - The message, as a byte array (null if the message was empty or deleted).partition - The partition the message has originated from.offset - the offset of the message in the original source (for example the Kafka
offset).IOExceptiondefault T deserialize(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record) throws IOException
KafkaDeserializationSchemadeserialize 在接口中 KafkaDeserializationSchema<T>record - Kafka record to be deserialized.IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.