Package org.apache.avro.data
Class TimeConversions.LocalTimestampMicrosConversion
java.lang.Object
org.apache.avro.Conversion<LocalDateTime>
org.apache.avro.data.TimeConversions.LocalTimestampMicrosConversion
- Enclosing class:
TimeConversions
public static class TimeConversions.LocalTimestampMicrosConversion
extends Conversion<LocalDateTime>
-
Constructor Summary
Constructors -
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
-
LocalTimestampMicrosConversion
public LocalTimestampMicrosConversion()
-
-
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>
-