public static class TimeConversions.TimestampConversion extends Conversion<org.joda.time.DateTime>
| Constructor and Description |
|---|
TimeConversions.TimestampConversion() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
fromLong(Long millisFromEpoch,
Schema schema,
LogicalType type) |
Class<org.joda.time.DateTime> |
getConvertedType()
Return the Java class representing the logical type.
|
String |
getLogicalTypeName()
Return the logical type this class converts.
|
Long |
toLong(org.joda.time.DateTime timestamp,
Schema schema,
LogicalType type) |
fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromInt, fromMap, fromRecord, getRecommendedSchema, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toInt, toMap, toRecordpublic Class<org.joda.time.DateTime> getConvertedType()
ConversiongetConvertedType in class Conversion<org.joda.time.DateTime>public String getLogicalTypeName()
ConversiongetLogicalTypeName in class Conversion<org.joda.time.DateTime>public org.joda.time.DateTime fromLong(Long millisFromEpoch, Schema schema, LogicalType type)
fromLong in class Conversion<org.joda.time.DateTime>public Long toLong(org.joda.time.DateTime timestamp, Schema schema, LogicalType type)
toLong in class Conversion<org.joda.time.DateTime>Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.