Package org.apache.avro.data
Class TimeConversions.LocalTimestampMillisConversion
java.lang.Object
org.apache.avro.Conversion<LocalDateTime>
org.apache.avro.data.TimeConversions.LocalTimestampMillisConversion
- Enclosing class:
TimeConversions
public static class TimeConversions.LocalTimestampMillisConversion
extends Conversion<LocalDateTime>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromLong
(Long millisFromEpoch, 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
-
LocalTimestampMillisConversion
public LocalTimestampMillisConversion()
-
-
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>
-