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