This project has retired. For details please refer to its Attic page.
Tuple4 (Apache Crunch 0.9.0 API)

org.apache.crunch
Class Tuple4<V1,V2,V3,V4>

java.lang.Object
  extended by org.apache.crunch.Tuple4<V1,V2,V3,V4>
All Implemented Interfaces:
Tuple
Direct Known Subclasses:
Tuple4.Collect

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

A convenience class for four-element Tuples.


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

Constructor Detail

Tuple4

public Tuple4(V1 first,
              V2 second,
              V3 third,
              V4 fourth)
Method Detail

of

public static <A,B,C,D> Tuple4<A,B,C,D> of(A a,
                                           B b,
                                           C c,
                                           D d)

first

public V1 first()

second

public V2 second()

third

public V3 third()

fourth

public V4 fourth()

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 © 2014 The Apache Software Foundation. All Rights Reserved.