Class KafkaSchemaWrappedSchema

java.lang.Object
org.apache.pulsar.io.kafka.connect.schema.KafkaSchemaWrappedSchema
All Implemented Interfaces:
Serializable, Cloneable, org.apache.pulsar.client.api.Schema<byte[]>

public class KafkaSchemaWrappedSchema extends Object implements org.apache.pulsar.client.api.Schema<byte[]>, Serializable
Wrapped schema for kafka connect schema.
See Also:
  • Field Summary

    Fields inherited from interface org.apache.pulsar.client.api.Schema

    BOOL, BYTEBUFFER, BYTES, DATE, DOUBLE, FLOAT, INSTANT, INT16, INT32, INT64, INT8, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, STRING, TIME, TIMESTAMP
  • Constructor Summary

    Constructors
    Constructor
    Description
    KafkaSchemaWrappedSchema(org.apache.pulsar.kafka.shade.avro.Schema schema, org.apache.kafka.connect.storage.Converter converter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pulsar.client.api.Schema<byte[]>
     
    byte[]
    encode(byte[] data)
     
    org.apache.pulsar.common.schema.SchemaInfo
     

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.pulsar.client.api.Schema

    configureSchemaInfo, decode, decode, decode, decode, getNativeSchema, requireFetchingSchemaInfo, setSchemaInfoProvider, supportSchemaVersioning, validate
  • Constructor Details

    • KafkaSchemaWrappedSchema

      public KafkaSchemaWrappedSchema(org.apache.pulsar.kafka.shade.avro.Schema schema, org.apache.kafka.connect.storage.Converter converter)
  • Method Details

    • encode

      public byte[] encode(byte[] data)
      Specified by:
      encode in interface org.apache.pulsar.client.api.Schema<byte[]>
    • getSchemaInfo

      public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()
      Specified by:
      getSchemaInfo in interface org.apache.pulsar.client.api.Schema<byte[]>
    • clone

      public org.apache.pulsar.client.api.Schema<byte[]> clone()
      Specified by:
      clone in interface org.apache.pulsar.client.api.Schema<byte[]>
      Overrides:
      clone in class Object