Class PulsarJsonRowDecoderFactory
java.lang.Object
org.apache.pulsar.sql.presto.decoder.json.PulsarJsonRowDecoderFactory
- All Implemented Interfaces:
PulsarRowDecoderFactory
PulsarRowDecoderFactory for
SchemaType.JSON.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRowDecoder(org.apache.pulsar.common.naming.TopicName topicName, org.apache.pulsar.common.schema.SchemaInfo schemaInfo, Set<io.prestosql.decoder.DecoderColumnHandle> columns) createRowDecoder RowDecoder by pulsar SchemaInfo and column DecoderColumnHandles.List<io.prestosql.spi.connector.ColumnMetadata>extractColumnMetadata(org.apache.pulsar.common.naming.TopicName topicName, org.apache.pulsar.common.schema.SchemaInfo schemaInfo, PulsarColumnHandle.HandleKeyValueType handleKeyValueType) extract ColumnMetadata from pulsar SchemaInfo and HandleKeyValueType.
-
Constructor Details
-
PulsarJsonRowDecoderFactory
public PulsarJsonRowDecoderFactory(io.prestosql.spi.type.TypeManager typeManager)
-
-
Method Details
-
createRowDecoder
public PulsarJsonRowDecoder createRowDecoder(org.apache.pulsar.common.naming.TopicName topicName, org.apache.pulsar.common.schema.SchemaInfo schemaInfo, Set<io.prestosql.decoder.DecoderColumnHandle> columns) Description copied from interface:PulsarRowDecoderFactorycreateRowDecoder RowDecoder by pulsar SchemaInfo and column DecoderColumnHandles.- Specified by:
createRowDecoderin interfacePulsarRowDecoderFactory- Returns:
-
extractColumnMetadata
public List<io.prestosql.spi.connector.ColumnMetadata> extractColumnMetadata(org.apache.pulsar.common.naming.TopicName topicName, org.apache.pulsar.common.schema.SchemaInfo schemaInfo, PulsarColumnHandle.HandleKeyValueType handleKeyValueType) Description copied from interface:PulsarRowDecoderFactoryextract ColumnMetadata from pulsar SchemaInfo and HandleKeyValueType.- Specified by:
extractColumnMetadatain interfacePulsarRowDecoderFactory- Returns:
-