Top Description Fields Constructors Methods
org.apache.avro.reflect

public abstract Class CustomEncoding<T>

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.avro.reflect.DateAsLongEncoding
Type Parameters
<T>
The class of objects that can be serialized with this encoder / decoder.
Imports
java.io.IOException, org.apache.avro.Schema, org.apache.avro.io.Decoder, .Encoder

Expert: a custom encoder and decoder that writes an object directly to avro. No validation is performed to check that the encoding conforms to the schema. Invalid implementations may result in an unreadable file. The use of org.apache.avro.io.ValidatingEncoder is recommended.

Field Summary

Modifier and TypeField and Description
protected Schema

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Schema
protected abstract T
read(Object reuse, Decoder in)

pack-priv T
protected abstract void
write(Object datum, Encoder out)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

schemaback to summary
protected Schema schema

Constructor Detail

CustomEncodingback to summary
public CustomEncoding()

Method Detail

getSchemaback to summary
protected Schema getSchema()
readback to summary
protected abstract T read(Object reuse, Decoder in) throws IOException
readback to summary
pack-priv T read(Decoder in) throws IOException
writeback to summary
protected abstract void write(Object datum, Encoder out) throws IOException