org.apache.pig.data
Class TimestampedTuple

java.lang.Object
  extended by org.apache.pig.data.AbstractTuple
      extended by org.apache.pig.data.DefaultTuple
          extended by org.apache.pig.data.TimestampedTuple
All Implemented Interfaces:
Serializable, Comparable, Iterable<Object>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable, Tuple

public class TimestampedTuple
extends DefaultTuple

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pig.data.DefaultTuple
DefaultTuple.DefaultTupleRawComparator
 
Field Summary
protected  boolean heartbeat
           
protected  double timestamp
           
 
Fields inherited from class org.apache.pig.data.DefaultTuple
isNull, mFields
 
Fields inherited from interface org.apache.pig.data.Tuple
NOTNULL, NULL
 
Constructor Summary
TimestampedTuple(int numFields)
           
TimestampedTuple(String textLine, String delimiter, int timestampColumn, SimpleDateFormat dateFormat)
           
 
Method Summary
 double getTimeStamp()
           
 boolean isHeartBeat()
           
 void setHeartBeat(boolean h)
           
 void setTimeStamp(double t)
           
 
Methods inherited from class org.apache.pig.data.DefaultTuple
append, compareTo, get, getAll, getComparatorClass, getMemorySize, hashCode, readFields, set, size, write
 
Methods inherited from class org.apache.pig.data.AbstractTuple
equals, getType, isNull, iterator, reference, toDelimitedString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

protected double timestamp

heartbeat

protected boolean heartbeat
Constructor Detail

TimestampedTuple

public TimestampedTuple(int numFields)

TimestampedTuple

public TimestampedTuple(String textLine,
                        String delimiter,
                        int timestampColumn,
                        SimpleDateFormat dateFormat)
Method Detail

getTimeStamp

public double getTimeStamp()

setTimeStamp

public void setTimeStamp(double t)

isHeartBeat

public boolean isHeartBeat()

setHeartBeat

public void setHeartBeat(boolean h)


Copyright © 2007-2012 The Apache Software Foundation