org.apache.pig.backend.hadoop
Class DateTimeWritable

java.lang.Object
  extended by 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.


Nested Class Summary
static class DateTimeWritable.Comparator
          A Comparator optimized for DateTimeWritable.
 
Constructor Summary
DateTimeWritable()
           
DateTimeWritable(org.joda.time.DateTime dt)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTimeWritable

public DateTimeWritable()

DateTimeWritable

public DateTimeWritable(org.joda.time.DateTime dt)
Method Detail

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