public class DateTimeWritable extends Object implements org.apache.hadoop.io.WritableComparable
Modifier and Type | Class and Description |
---|---|
static class |
DateTimeWritable.Comparator
A Comparator optimized for DateTimeWritable.
|
Constructor and Description |
---|
DateTimeWritable() |
DateTimeWritable(org.joda.time.DateTime dt) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o)
Returns true iff
o is a DateTimeWritable with the same
value. |
org.joda.time.DateTime |
get() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
set(org.joda.time.DateTime dt) |
static void |
setupAvailableZoneIds() |
String |
toString() |
void |
write(DataOutput out) |
public DateTimeWritable()
public DateTimeWritable(org.joda.time.DateTime dt)
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void set(org.joda.time.DateTime dt)
public org.joda.time.DateTime get()
public static void setupAvailableZoneIds()
public boolean equals(Object o)
o
is a DateTimeWritable with the same
value.public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2007-2017 The Apache Software Foundation