Interface PulsarRowDecoderFactory

All Known Implementing Classes:
PulsarAvroRowDecoderFactory, PulsarJsonRowDecoderFactory, PulsarPrimitiveRowDecoderFactory, PulsarProtobufNativeRowDecoderFactory

public interface PulsarRowDecoderFactory
Pulsar customized RowDecoderFactory interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    createRowDecoder(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.
  • Method Details

    • extractColumnMetadata

      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, Set<io.prestosql.decoder.DecoderColumnHandle> columns)
      createRowDecoder RowDecoder by pulsar SchemaInfo and column DecoderColumnHandles.
      Parameters:
      schemaInfo -
      columns -
      Returns: