public static class AvroJavaTimeConversions.LocalTimestampMicrosConversion extends Conversion<java.time.LocalDateTime>
Constructor and Description |
---|
LocalTimestampMicrosConversion() |
Modifier and Type | Method and Description |
---|---|
java.time.LocalDateTime |
fromLong(java.lang.Long microsFromEpoch,
Schema schema,
LogicalType type) |
java.lang.Class<java.time.LocalDateTime> |
getConvertedType() |
java.lang.String |
getLogicalTypeName() |
Schema |
getRecommendedSchema() |
java.lang.Long |
toLong(java.time.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 java.lang.Class<java.time.LocalDateTime> getConvertedType()
getConvertedType
in class Conversion<java.time.LocalDateTime>
public java.lang.String getLogicalTypeName()
getLogicalTypeName
in class Conversion<java.time.LocalDateTime>
public java.time.LocalDateTime fromLong(java.lang.Long microsFromEpoch, Schema schema, LogicalType type)
fromLong
in class Conversion<java.time.LocalDateTime>
public java.lang.Long toLong(java.time.LocalDateTime timestamp, Schema schema, LogicalType type)
toLong
in class Conversion<java.time.LocalDateTime>
public Schema getRecommendedSchema()
getRecommendedSchema
in class Conversion<java.time.LocalDateTime>