public static class AvroJavaTimeConversions.DateConversion extends Conversion<java.time.LocalDate>
Constructor and Description |
---|
DateConversion() |
Modifier and Type | Method and Description |
---|---|
java.time.LocalDate |
fromInt(java.lang.Integer daysFromEpoch,
Schema schema,
LogicalType type) |
java.lang.Class<java.time.LocalDate> |
getConvertedType() |
java.lang.String |
getLogicalTypeName() |
Schema |
getRecommendedSchema() |
java.lang.Integer |
toInt(java.time.LocalDate date,
Schema schema,
LogicalType type) |
adjustAndSetValue, fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromLong, fromMap, fromRecord, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toLong, toMap, toRecord
public java.lang.Class<java.time.LocalDate> getConvertedType()
getConvertedType
in class Conversion<java.time.LocalDate>
public java.lang.String getLogicalTypeName()
getLogicalTypeName
in class Conversion<java.time.LocalDate>
public java.time.LocalDate fromInt(java.lang.Integer daysFromEpoch, Schema schema, LogicalType type)
fromInt
in class Conversion<java.time.LocalDate>
public java.lang.Integer toInt(java.time.LocalDate date, Schema schema, LogicalType type)
toInt
in class Conversion<java.time.LocalDate>
public Schema getRecommendedSchema()
getRecommendedSchema
in class Conversion<java.time.LocalDate>