This project has retired. For details please refer to its
Attic page.
Tuple3 (Apache Crunch 0.10.0 API)
org.apache.crunch
Class Tuple3<V1,V2,V3>
java.lang.Object
org.apache.crunch.Tuple3<V1,V2,V3>
- All Implemented Interfaces:
- Tuple
- Direct Known Subclasses:
- Tuple3.Collect
public class Tuple3<V1,V2,V3>
- extends Object
- implements Tuple
A convenience class for three-element Tuple
s.
Tuple3
public Tuple3(V1 first,
V2 second,
V3 third)
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 © 2014 The Apache Software Foundation. All Rights Reserved.