public static class TimeConversions.LocalTimestampMillisConversion extends Conversion<LocalDateTime>
Constructor and Description |
---|
LocalTimestampMillisConversion() |
Modifier and Type | Method and Description |
---|---|
LocalDateTime |
fromLong(Long millisFromEpoch,
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, toRecord
public Class<LocalDateTime> getConvertedType()
Conversion
getConvertedType
in class Conversion<LocalDateTime>
public String getLogicalTypeName()
Conversion
getLogicalTypeName
in class Conversion<LocalDateTime>
public LocalDateTime fromLong(Long millisFromEpoch, 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–2022 The Apache Software Foundation. All rights reserved.