public static class KafkaSource.BytesDeserializer extends Object implements org.apache.kafka.common.serialization.Deserializer<org.apache.hadoop.io.BytesWritable>
Deserializer
which simply wraps the payload as a BytesWritable
.Constructor and Description |
---|
BytesDeserializer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(Map<String,?> configProperties,
boolean isKey) |
org.apache.hadoop.io.BytesWritable |
deserialize(String topic,
byte[] valueBytes) |
public void configure(Map<String,?> configProperties, boolean isKey)
configure
in interface org.apache.kafka.common.serialization.Deserializer<org.apache.hadoop.io.BytesWritable>
public org.apache.hadoop.io.BytesWritable deserialize(String topic, byte[] valueBytes)
deserialize
in interface org.apache.kafka.common.serialization.Deserializer<org.apache.hadoop.io.BytesWritable>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.kafka.common.serialization.Deserializer<org.apache.hadoop.io.BytesWritable>
Copyright © 2017 The Apache Software Foundation. All rights reserved.