org.apache.pig.data
Class IndexedTuple

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

public class IndexedTuple
extends Tuple

This is an internal class that keeps track of the specific input that a Tuple came from


Field Summary
 int index
           
 
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
IndexedTuple()
           
IndexedTuple(Tuple t, int indexIn)
           
 
Method Summary
 void readFields(DataInput in)
           
 String toString()
           
 Tuple toTuple()
           
 void write(DataOutput out)
           
 
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, setField, setField, setField, setField, toDelimitedString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

index

public int index
Constructor Detail

IndexedTuple

public IndexedTuple()

IndexedTuple

public IndexedTuple(Tuple t,
                    int indexIn)
Method Detail

toString

public String toString()
Overrides:
toString in class Tuple

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Overrides:
write in class Tuple
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Overrides:
readFields in class Tuple
Throws:
IOException

toTuple

public Tuple toTuple()


Copyright © ${year} The Apache Software Foundation