Package org.apache.avro.reflect
Class CustomEncoding<T>
java.lang.Object
org.apache.avro.reflect.CustomEncoding<T>
- Type Parameters:
T
- The class of objects that can be serialized with this encoder / decoder.
- Direct Known Subclasses:
DateAsLongEncoding
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
ValidatingEncoder
is recommended.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
schema
-
-
Constructor Details
-
CustomEncoding
public CustomEncoding()
-
-
Method Details
-
write
- Throws:
IOException
-
read
- Throws:
IOException
-
getSchema
-