org.apache.pig.backend.hadoop
Class DateTimeWritable
java.lang.Object
org.apache.pig.backend.hadoop.DateTimeWritable
- All Implemented Interfaces:
- Comparable, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable
public class DateTimeWritable
- extends Object
- implements org.apache.hadoop.io.WritableComparable
Writable for Double values.
DateTimeWritable
public DateTimeWritable()
DateTimeWritable
public DateTimeWritable(org.joda.time.DateTime dt)
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
set
public void set(org.joda.time.DateTime dt)
get
public org.joda.time.DateTime get()
equals
public boolean equals(Object o)
- Returns true iff
o
is a DateTimeWritable with the same
value.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007-2012 The Apache Software Foundation