类 SerDeSchema<T>

java.lang.Object
org.apache.pulsar.functions.source.SerDeSchema<T>
所有已实现的接口:
Cloneable, org.apache.pulsar.client.api.Schema<T>

public class SerDeSchema<T> extends Object implements org.apache.pulsar.client.api.Schema<T>
  • 字段概要

    从接口继承的字段 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
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    org.apache.pulsar.client.api.Schema<T>
     
    decode(byte[] bytes)
     
    byte[]
    encode(T value)
     
    org.apache.pulsar.common.schema.SchemaInfo
     

    从类继承的方法 java.lang.Object

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

    从接口继承的方法 org.apache.pulsar.client.api.Schema

    configureSchemaInfo, decode, decode, getNativeSchema, requireFetchingSchemaInfo, setSchemaInfoProvider, supportSchemaVersioning, validate
  • 构造器详细资料

    • SerDeSchema

      public SerDeSchema()
  • 方法详细资料

    • encode

      public byte[] encode(T value)
      指定者:
      encode 在接口中 org.apache.pulsar.client.api.Schema<T>
    • decode

      public T decode(byte[] bytes)
      指定者:
      decode 在接口中 org.apache.pulsar.client.api.Schema<T>
    • getSchemaInfo

      public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()
      指定者:
      getSchemaInfo 在接口中 org.apache.pulsar.client.api.Schema<T>
    • clone

      public org.apache.pulsar.client.api.Schema<T> clone()
      指定者:
      clone 在接口中 org.apache.pulsar.client.api.Schema<T>
      覆盖:
      clone 在类中 Object