Package org.apache.avro.data
Class TimeConversions.LocalTimestampNanosConversion
java.lang.Object
org.apache.avro.Conversion<LocalDateTime>
org.apache.avro.data.TimeConversions.LocalTimestampNanosConversion
- Enclosing class:
TimeConversions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromLong
(Long microsFromEpoch, Schema schema, LogicalType type) Return the Java class representing the logical type.Return the logical type this class converts.toLong
(LocalDateTime timestamp, Schema schema, LogicalType type) Methods inherited from class org.apache.avro.Conversion
adjustAndSetValue, fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromInt, fromMap, fromRecord, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toInt, toMap, toRecord
-
Constructor Details
-
LocalTimestampNanosConversion
public LocalTimestampNanosConversion()
-
-
Method Details
-
getConvertedType
Description copied from class:Conversion
Return the Java class representing the logical type.- Specified by:
getConvertedType
in classConversion<LocalDateTime>
- Returns:
- a Java class returned by from methods and accepted by to methods
-
getLogicalTypeName
Description copied from class:Conversion
Return the logical type this class converts.- Specified by:
getLogicalTypeName
in classConversion<LocalDateTime>
- Returns:
- a String logical type name
-
fromLong
- Overrides:
fromLong
in classConversion<LocalDateTime>
-
toLong
- Overrides:
toLong
in classConversion<LocalDateTime>
-
getRecommendedSchema
- Overrides:
getRecommendedSchema
in classConversion<LocalDateTime>
-