Package org.apache.avro
Class LogicalTypes.TimestampNanos
java.lang.Object
org.apache.avro.LogicalType
org.apache.avro.LogicalTypes.TimestampNanos
- Enclosing class:
LogicalTypes
TimestampNanos represents a date and time in nanoseconds
-
Field Summary
Fields inherited from class org.apache.avro.LogicalType
LOGICAL_TYPE_PROP -
Method Summary
Methods inherited from class org.apache.avro.LogicalType
addToSchema, getName
-
Method Details
-
validate
Description copied from class:LogicalTypeValidate this logical type for the given Schema.This will throw an exception if the Schema is incompatible with this type. For example, a date is stored as an int and is incompatible with a fixed Schema.
- Overrides:
validatein classLogicalType- Parameters:
schema- a Schema
-