Package org.apache.avro.reflect
Class DateAsLongEncoding
This encoder/decoder writes a java.util.Date object as a long to avro and
reads a Date object from long. The long stores the number of milliseconds
since January 1, 1970, 00:00:00 GMT represented by the Date object.
-
Field Summary
Fields inherited from class org.apache.avro.reflect.CustomEncoding
schema
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.avro.reflect.CustomEncoding
getSchema
-
Constructor Details
-
DateAsLongEncoding
public DateAsLongEncoding()
-
-
Method Details
-
write
- Specified by:
write
in classCustomEncoding<Date>
- Throws:
IOException
-
read
- Specified by:
read
in classCustomEncoding<Date>
- Throws:
IOException
-