Class AvroSchema<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.AvroBaseStructSchema<T>
-
- org.apache.pulsar.client.impl.schema.AvroSchema<T>
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.pulsar.client.api.Schema<T>
public class AvroSchema<T> extends AvroBaseStructSchema<T>
An AVRO schema implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAvroSchema.TimestampConversion
-
Field Summary
-
Fields inherited from class org.apache.pulsar.client.impl.schema.AvroBaseStructSchema
schema
-
Fields inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
reader, schemaInfo, schemaInfoProvider, writer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddLogicalTypeConversions(org.apache.avro.reflect.ReflectData reflectData, boolean jsr310ConversionEnabled)static voidaddLogicalTypeConversions(org.apache.avro.reflect.ReflectData reflectData, boolean jsr310ConversionEnabled, boolean decimalConversionEnabled)org.apache.pulsar.client.api.Schema<T>clone()static <T> AvroSchema<T>of(java.lang.Class<T> pojo)static <T> AvroSchema<T>of(java.lang.Class<T> pojo, java.util.Map<java.lang.String,java.lang.String> properties)static <T> AvroSchema<T>of(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition)booleansupportSchemaVersioning()-
Methods inherited from class org.apache.pulsar.client.impl.schema.AvroBaseStructSchema
getAvroSchema, getNativeSchema
-
Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
atSchemaVersion, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriter
-
-
-
-
Method Detail
-
supportSchemaVersioning
public boolean supportSchemaVersioning()
-
clone
public org.apache.pulsar.client.api.Schema<T> clone()
- Specified by:
clonein interfaceorg.apache.pulsar.client.api.Schema<T>- Overrides:
clonein classAbstractSchema<T>
-
of
public static <T> AvroSchema<T> of(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition)
-
of
public static <T> AvroSchema<T> of(java.lang.Class<T> pojo)
-
of
public static <T> AvroSchema<T> of(java.lang.Class<T> pojo, java.util.Map<java.lang.String,java.lang.String> properties)
-
addLogicalTypeConversions
public static void addLogicalTypeConversions(org.apache.avro.reflect.ReflectData reflectData, boolean jsr310ConversionEnabled)
-
addLogicalTypeConversions
public static void addLogicalTypeConversions(org.apache.avro.reflect.ReflectData reflectData, boolean jsr310ConversionEnabled, boolean decimalConversionEnabled)
-
-