类 StructSchema<T>
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.AbstractSchema<T>
-
- org.apache.pulsar.client.impl.schema.AbstractStructSchema<T>
-
- org.apache.pulsar.client.impl.schema.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
, andSchemaType.PROTOBUF
.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.apache.avro.Schema
schema
已过时。-
从类继承的字段 org.apache.pulsar.client.impl.schema.AbstractStructSchema
LOG, reader, schemaInfo, schemaInfoProvider, writer
-
-
构造器概要
构造器 限定符 构造器 说明 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)
已过时。-
从类继承的方法 org.apache.pulsar.client.impl.schema.AbstractStructSchema
atSchemaVersion, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriter
-
从类继承的方法 org.apache.pulsar.client.impl.schema.AbstractSchema
clone
-
-
-
-
方法详细资料
-
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)
已过时。
-
-