Package org.nuxeo.ecm.core.bulk.io
Class InstantAsLongEncoding
java.lang.Object
org.apache.avro.reflect.CustomEncoding<Instant>
org.nuxeo.ecm.core.bulk.io.InstantAsLongEncoding
This
CustomEncoding
encodes/decodes Instant
to a long (time in milliseconds) before encoding it in
Avro format.- Since:
- 10.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
Fields inherited from class org.apache.avro.reflect.CustomEncoding
schema
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.avro.reflect.CustomEncoding
getSchema
-
Field Details
-
NULL_SCHEMA_INDEX
protected static final int NULL_SCHEMA_INDEX- See Also:
-
LONG_SCHEMA_INDEX
protected static final int LONG_SCHEMA_INDEX- See Also:
-
-
Constructor Details
-
InstantAsLongEncoding
public InstantAsLongEncoding()
-
-
Method Details
-
write
- Specified by:
write
in classorg.apache.avro.reflect.CustomEncoding<Instant>
- Throws:
IOException
-
read
- Specified by:
read
in classorg.apache.avro.reflect.CustomEncoding<Instant>
- Throws:
IOException
-