public class KeyValueSchemaHandler extends Object implements SchemaHandler
| Constructor and Description |
|---|
KeyValueSchemaHandler(org.apache.pulsar.common.naming.TopicName topicName,
PulsarConnectorConfig pulsarConnectorConfig,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo,
List<PulsarColumnHandle> columnHandles) |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(io.netty.buffer.ByteBuf keyPayload,
io.netty.buffer.ByteBuf dataPayload,
byte[] schemaVersion) |
Object |
extractField(int index,
Object currentRecord) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserialize, deserializepublic KeyValueSchemaHandler(org.apache.pulsar.common.naming.TopicName topicName,
PulsarConnectorConfig pulsarConnectorConfig,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo,
List<PulsarColumnHandle> columnHandles)
public Object deserialize(io.netty.buffer.ByteBuf keyPayload, io.netty.buffer.ByteBuf dataPayload, byte[] schemaVersion)
deserialize in interface SchemaHandlerpublic Object extractField(int index, Object currentRecord)
extractField in interface SchemaHandlerCopyright © 2017–2021 Apache Software Foundation. All rights reserved.