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