org.apache.pig.data
Class TimestampedTuple

java.lang.Object
  extended by org.apache.pig.data.Datum
      extended by org.apache.pig.data.Tuple
          extended by org.apache.pig.data.TimestampedTuple
All Implemented Interfaces:
Comparable, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable

public class TimestampedTuple
extends Tuple


Field Summary
protected  boolean heartbeat
           
protected  double timestamp
           
 
Fields inherited from class org.apache.pig.data.Tuple
fields
 
Fields inherited from class org.apache.pig.data.Datum
ATOM, BAG, MAP, OBJECT_SIZE, RECORD_1, RECORD_2, RECORD_3, REF_SIZE, TUPLE
 
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.Tuple
appendField, appendTuple, arity, compareTo, compareTo, copyFrom, equals, getAtomField, getBagField, getField, getMemorySize, getTupleField, greaterThan, hashCode, lessThan, read, readDatum, readFields, setField, setField, setField, setField, toDelimitedString, toString, write
 
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 © ${year} The Apache Software Foundation