@InterfaceAudience.Public @InterfaceStability.Evolving public class AvroReflectSerialization extends AvroSerialization<Object>
avro.reflect.pkgs
or implement
AvroReflectSerializable
interface.Modifier and Type | Field and Description |
---|---|
static String |
AVRO_REFLECT_PACKAGES
Key to configure packages that contain classes to be serialized and
deserialized using this class.
|
AVRO_SCHEMA_KEY
Constructor and Description |
---|
AvroReflectSerialization() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Class<?> c)
Allows clients to test whether this
Serialization
supports the given class. |
org.apache.avro.io.DatumReader |
getReader(Class<Object> clazz)
Create and return Avro DatumReader for the given class.
|
org.apache.avro.Schema |
getSchema(Object t)
Return an Avro Schema instance for the given class.
|
org.apache.avro.io.DatumWriter |
getWriter(Class<Object> clazz)
Create and return Avro DatumWriter for the given class.
|
getDeserializer, getSerializer
getConf, setConf
@InterfaceAudience.Private public static final String AVRO_REFLECT_PACKAGES
@InterfaceAudience.Private public boolean accept(Class<?> c)
Serialization
Serialization
supports the given class.@InterfaceAudience.Private public org.apache.avro.io.DatumReader getReader(Class<Object> clazz)
AvroSerialization
getReader
in class AvroSerialization<Object>
@InterfaceAudience.Private public org.apache.avro.Schema getSchema(Object t)
AvroSerialization
getSchema
in class AvroSerialization<Object>
@InterfaceAudience.Private public org.apache.avro.io.DatumWriter getWriter(Class<Object> clazz)
AvroSerialization
getWriter
in class AvroSerialization<Object>
Copyright © 2013 Apache Software Foundation. All rights reserved.