类 StructSchema<T>

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

    @Deprecated
    public abstract class StructSchema<T>
    extends AbstractStructSchema<T>
    已过时。
    This is a base schema implementation for Avro Based `Struct` types. A struct type is used for presenting records (objects) which have multiple fields.

    Currently Pulsar supports 3 `Struct` types - SchemaType.AVRO, SchemaType.JSON, and SchemaType.PROTOBUF.

    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected org.apache.avro.Schema schema
      已过时。
       
      • 从接口继承的字段 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
    • 构造器概要

      构造器 
      限定符 构造器 说明
      protected StructSchema​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
      已过时。
       
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 已过时的方法 
      修饰符和类型 方法 说明
      protected static org.apache.avro.Schema createAvroSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)
      已过时。
       
      protected static org.apache.avro.Schema extractAvroSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition, java.lang.Class pojo)
      已过时。
       
      org.apache.avro.Schema getAvroSchema()
      已过时。
       
      protected static org.apache.avro.Schema parseAvroSchema​(java.lang.String schemaJson)
      已过时。
       
      static <T> org.apache.pulsar.common.schema.SchemaInfo parseSchemaInfo​(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition, org.apache.pulsar.common.schema.SchemaType schemaType)
      已过时。
       
      • 从类继承的方法 java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 org.apache.pulsar.client.api.Schema

        configureSchemaInfo, decode, getNativeSchema, requireFetchingSchemaInfo, supportSchemaVersioning, validate
    • 字段详细资料

      • schema

        protected final org.apache.avro.Schema schema
        已过时。
    • 构造器详细资料

      • StructSchema

        protected StructSchema​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        已过时。
    • 方法详细资料

      • getAvroSchema

        public org.apache.avro.Schema getAvroSchema()
        已过时。
      • createAvroSchema

        protected static org.apache.avro.Schema createAvroSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)
        已过时。
      • extractAvroSchema

        protected static org.apache.avro.Schema extractAvroSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition,
                                                                  java.lang.Class pojo)
        已过时。
      • parseAvroSchema

        protected static org.apache.avro.Schema parseAvroSchema​(java.lang.String schemaJson)
        已过时。
      • parseSchemaInfo

        public static <T> org.apache.pulsar.common.schema.SchemaInfo parseSchemaInfo​(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition,
                                                                                     org.apache.pulsar.common.schema.SchemaType schemaType)
        已过时。