public static class TimeConversions.DateConversion extends Conversion<LocalDate>
Constructor and Description |
---|
DateConversion() |
Modifier and Type | Method and Description |
---|---|
LocalDate |
fromInt(Integer daysFromEpoch,
Schema schema,
LogicalType type) |
Class<LocalDate> |
getConvertedType()
Return the Java class representing the logical type.
|
String |
getLogicalTypeName()
Return the logical type this class converts.
|
Schema |
getRecommendedSchema() |
Integer |
toInt(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 Class<LocalDate> getConvertedType()
Conversion
getConvertedType
in class Conversion<LocalDate>
public String getLogicalTypeName()
Conversion
getLogicalTypeName
in class Conversion<LocalDate>
public LocalDate fromInt(Integer daysFromEpoch, Schema schema, LogicalType type)
fromInt
in class Conversion<LocalDate>
public Integer toInt(LocalDate date, Schema schema, LogicalType type)
toInt
in class Conversion<LocalDate>
public Schema getRecommendedSchema()
getRecommendedSchema
in class Conversion<LocalDate>
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.