cascading.tuple
Class IndexTuple

java.lang.Object
  extended by cascading.tuple.IndexTuple
All Implemented Interfaces:
Comparable

public class IndexTuple
extends Object
implements Comparable

Class IndexTuple allows for managing an int index value with a Tuple instance. Used internally for co-grouping values.


Constructor Summary
IndexTuple()
          Constructor IndexTuple creates a new IndexTuple instance.
IndexTuple(int index, Tuple tuple)
          Constructor IndexTuple creates a new IndexTuple instance.
 
Method Summary
 int compareTo(IndexTuple indexTuple)
           
 int compareTo(Object object)
           
 boolean equals(Object object)
           
 int getIndex()
           
 Tuple getTuple()
           
 int hashCode()
           
 void setIndex(int index)
           
 void setTuple(Tuple tuple)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexTuple

public IndexTuple()
Constructor IndexTuple creates a new IndexTuple instance.


IndexTuple

public IndexTuple(int index,
                  Tuple tuple)
Constructor IndexTuple creates a new IndexTuple instance.

Parameters:
index - of type int
tuple - of type Tuple
Method Detail

setIndex

public void setIndex(int index)

getIndex

public int getIndex()

setTuple

public void setTuple(Tuple tuple)

getTuple

public Tuple getTuple()

compareTo

public int compareTo(Object object)
Specified by:
compareTo in interface Comparable

compareTo

public int compareTo(IndexTuple indexTuple)

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.