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) |
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 boolean equals(Object o)
o
is a DateTimeWritable with the same
value.public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2007-2012 The Apache Software Foundation