This project has retired. For details please refer to its Attic page.
Tuple3 (Apache Crunch 0.3.0-incubating API)

org.apache.crunch
Class Tuple3<V1,V2,V3>

java.lang.Object
  extended by org.apache.crunch.Tuple3<V1,V2,V3>
All Implemented Interfaces:
Tuple

public class Tuple3<V1,V2,V3>
extends Object
implements Tuple

A convenience class for three-element Tuples.


Constructor Summary
Tuple3(V1 first, V2 second, V3 third)
           
 
Method Summary
 boolean equals(Object obj)
           
 V1 first()
           
 Object get(int index)
          Returns the Object at the given index.
 int hashCode()
           
static
<A,B,C> Tuple3<A,B,C>
of(A a, B b, C c)
           
 V2 second()
           
 int size()
          Returns the number of elements in this Tuple.
 V3 third()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tuple3

public Tuple3(V1 first,
              V2 second,
              V3 third)
Method Detail

of

public static <A,B,C> Tuple3<A,B,C> of(A a,
                                       B b,
                                       C c)

first

public V1 first()

second

public V2 second()

third

public V3 third()

get

public Object get(int index)
Description copied from interface: Tuple
Returns the Object at the given index.

Specified by:
get in interface Tuple

size

public int size()
Description copied from interface: Tuple
Returns the number of elements in this Tuple.

Specified by:
size in interface Tuple

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.