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