This project has retired. For details please refer to its
Attic page.
Tuple4 (Apache Crunch 0.7.0 API)
org.apache.crunch
Class Tuple4<V1,V2,V3,V4>
java.lang.Object
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 Tuple
s.
Tuple4
public Tuple4(V1 first,
V2 second,
V3 third,
V4 fourth)
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 © 2013 The Apache Software Foundation. All Rights Reserved.