Class PulsarPrimitiveRowDecoderFactory
- java.lang.Object
-
- org.apache.pulsar.sql.presto.decoder.primitive.PulsarPrimitiveRowDecoderFactory
-
- All Implemented Interfaces:
PulsarRowDecoderFactory
public class PulsarPrimitiveRowDecoderFactory extends java.lang.Object implements PulsarRowDecoderFactory
Primitive Schema PulsarRowDecoderFactory.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPRIMITIVE_COLUMN_NAME
-
Constructor Summary
Constructors Constructor Description PulsarPrimitiveRowDecoderFactory()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
PRIMITIVE_COLUMN_NAME
public static final java.lang.String PRIMITIVE_COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createRowDecoder
public PulsarRowDecoder createRowDecoder(org.apache.pulsar.common.naming.TopicName topicName, org.apache.pulsar.common.schema.SchemaInfo schemaInfo, java.util.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 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)Description copied from interface:PulsarRowDecoderFactoryextract ColumnMetadata from pulsar SchemaInfo and HandleKeyValueType.- Specified by:
extractColumnMetadatain interfacePulsarRowDecoderFactory- Returns:
-
-