Package org.apache.pulsar.sql.presto
Interface PulsarRowDecoderFactory
-
- All Known Implementing Classes:
PulsarAvroRowDecoderFactory,PulsarJsonRowDecoderFactory,PulsarPrimitiveRowDecoderFactory,PulsarProtobufNativeRowDecoderFactory
public interface PulsarRowDecoderFactoryPulsar customized RowDecoderFactory interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PulsarRowDecodercreateRowDecoder(org.apache.pulsar.common.naming.TopicName topicName, org.apache.pulsar.common.schema.SchemaInfo schemaInfo, java.util.Set<io.prestosql.decoder.DecoderColumnHandle> columns)createRowDecoder RowDecoder by pulsar SchemaInfo and column DecoderColumnHandles.java.util.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.
-
-
-
Method Detail
-
extractColumnMetadata
java.util.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.- Parameters:
schemaInfo-handleKeyValueType-- Returns:
-
createRowDecoder
PulsarRowDecoder createRowDecoder(org.apache.pulsar.common.naming.TopicName topicName, org.apache.pulsar.common.schema.SchemaInfo schemaInfo, java.util.Set<io.prestosql.decoder.DecoderColumnHandle> columns)
createRowDecoder RowDecoder by pulsar SchemaInfo and column DecoderColumnHandles.- Parameters:
schemaInfo-columns-- Returns:
-
-