public static class TimeConversions.DateConversion extends Conversion<org.joda.time.LocalDate>
Constructor and Description |
---|
TimeConversions.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.
|
Integer |
toInt(org.joda.time.LocalDate date,
Schema schema,
LogicalType type) |
fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromLong, fromMap, fromRecord, getRecommendedSchema, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toLong, toMap, toRecord
public Class<org.joda.time.LocalDate> getConvertedType()
Conversion
getConvertedType
in class Conversion<org.joda.time.LocalDate>
public String getLogicalTypeName()
Conversion
getLogicalTypeName
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>
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.