public class JodaDateTimeToEpochMillisThriftCodec extends Object implements ThriftCodec<org.joda.time.DateTime>
| Constructor and Description |
|---|
JodaDateTimeToEpochMillisThriftCodec(ThriftCatalog thriftCatalog) |
| Modifier and Type | Method and Description |
|---|---|
static long |
dateTimeToLong(org.joda.time.DateTime dateTime) |
ThriftType |
getType() |
static org.joda.time.DateTime |
longToDateTime(long instant) |
org.joda.time.DateTime |
read(TProtocolReader protocol) |
void |
write(org.joda.time.DateTime dateTime,
TProtocolWriter protocol) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNull@Inject public JodaDateTimeToEpochMillisThriftCodec(ThriftCatalog thriftCatalog)
public ThriftType getType()
getType in interface ThriftCodec<org.joda.time.DateTime>public org.joda.time.DateTime read(TProtocolReader protocol) throws Exception
read in interface ThriftCodec<org.joda.time.DateTime>Exceptionpublic void write(org.joda.time.DateTime dateTime,
TProtocolWriter protocol)
throws Exception
write in interface ThriftCodec<org.joda.time.DateTime>Exception@FromThrift public static org.joda.time.DateTime longToDateTime(long instant)
@ToThrift public static long dateTimeToLong(org.joda.time.DateTime dateTime)
Copyright © 2012–2021. All rights reserved.