Class 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>
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.pulsar.client.api.Schema<T>
@Deprecated public abstract class StructSchema<T> extends AbstractStructSchema<T>
Deprecated.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.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.avro.SchemaschemaDeprecated.-
Fields inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
LOG, reader, schemaInfo, schemaInfoProvider, writer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStructSchema(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static org.apache.avro.SchemacreateAvroSchema(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)Deprecated.protected static org.apache.avro.SchemaextractAvroSchema(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition, java.lang.Class pojo)Deprecated.org.apache.avro.SchemagetAvroSchema()Deprecated.protected static org.apache.avro.SchemaparseAvroSchema(java.lang.String schemaJson)Deprecated.static <T> org.apache.pulsar.common.schema.SchemaInfoparseSchemaInfo(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition, org.apache.pulsar.common.schema.SchemaType schemaType)Deprecated.-
Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
atSchemaVersion, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriter
-
Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractSchema
clone
-
-
-
-
Method Detail
-
getAvroSchema
public org.apache.avro.Schema getAvroSchema()
Deprecated.
-
createAvroSchema
protected static org.apache.avro.Schema createAvroSchema(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)
Deprecated.
-
extractAvroSchema
protected static org.apache.avro.Schema extractAvroSchema(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition, java.lang.Class pojo)Deprecated.
-
parseAvroSchema
protected static org.apache.avro.Schema parseAvroSchema(java.lang.String schemaJson)
Deprecated.
-
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)Deprecated.
-
-