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
Constructors -
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:ConversionReturn the Java class representing the logical type.- Specified by:
getConvertedTypein classConversion<LocalDateTime>- Returns:
- a Java class returned by from methods and accepted by to methods
-
getLogicalTypeName
Description copied from class:ConversionReturn the logical type this class converts.- Specified by:
getLogicalTypeNamein classConversion<LocalDateTime>- Returns:
- a String logical type name
-
fromLong
- Overrides:
fromLongin classConversion<LocalDateTime>
-
toLong
- Overrides:
toLongin classConversion<LocalDateTime>
-
getRecommendedSchema
- Overrides:
getRecommendedSchemain classConversion<LocalDateTime>
-