Class PulsarJsonRowDecoder

java.lang.Object
org.apache.pulsar.sql.presto.decoder.json.PulsarJsonRowDecoder
All Implemented Interfaces:
PulsarRowDecoder

public class PulsarJsonRowDecoder extends Object implements PulsarRowDecoder
Json PulsarRowDecoder.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PulsarJsonRowDecoder(org.apache.pulsar.client.impl.schema.generic.GenericJsonSchema genericJsonSchema, Set<io.prestosql.decoder.DecoderColumnHandle> columns)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<Map<io.prestosql.decoder.DecoderColumnHandle,io.prestosql.decoder.FieldValueProvider>>
    decodeRow(io.netty.buffer.ByteBuf byteBuf)
    decode ByteBuf by GenericSchema.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PulsarJsonRowDecoder

      public PulsarJsonRowDecoder(org.apache.pulsar.client.impl.schema.generic.GenericJsonSchema genericJsonSchema, Set<io.prestosql.decoder.DecoderColumnHandle> columns)
  • Method Details

    • decodeRow

      public Optional<Map<io.prestosql.decoder.DecoderColumnHandle,io.prestosql.decoder.FieldValueProvider>> decodeRow(io.netty.buffer.ByteBuf byteBuf)
      decode ByteBuf by GenericSchema.
      Specified by:
      decodeRow in interface PulsarRowDecoder
      Parameters:
      byteBuf -
      Returns: