public static class TimeConversions.LocalTimestampMicrosConversion extends Conversion<LocalDateTime>
| Constructor and Description |
|---|
LocalTimestampMicrosConversion() |
| Modifier and Type | Method and Description |
|---|---|
LocalDateTime |
fromLong(Long microsFromEpoch,
Schema schema,
LogicalType type) |
Class<LocalDateTime> |
getConvertedType()
Return the Java class representing the logical type.
|
String |
getLogicalTypeName()
Return the logical type this class converts.
|
Schema |
getRecommendedSchema() |
Long |
toLong(LocalDateTime timestamp,
Schema schema,
LogicalType type) |
adjustAndSetValue, fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromInt, fromMap, fromRecord, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toInt, toMap, toRecordpublic Class<LocalDateTime> getConvertedType()
ConversiongetConvertedType in class Conversion<LocalDateTime>public String getLogicalTypeName()
ConversiongetLogicalTypeName in class Conversion<LocalDateTime>public LocalDateTime fromLong(Long microsFromEpoch, Schema schema, LogicalType type)
fromLong in class Conversion<LocalDateTime>public Long toLong(LocalDateTime timestamp, Schema schema, LogicalType type)
toLong in class Conversion<LocalDateTime>public Schema getRecommendedSchema()
getRecommendedSchema in class Conversion<LocalDateTime>Copyright © 2009–2023 The Apache Software Foundation. All rights reserved.