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

org.apache.crunch
Class TupleN

java.lang.Object
  extended by org.apache.crunch.TupleN
All Implemented Interfaces:
Tuple

public class TupleN
extends Object
implements Tuple

A Tuple instance for an arbitrary number of values.


Constructor Summary
TupleN(Object... values)
           
 
Method Summary
 boolean equals(Object obj)
           
 Object get(int index)
          Returns the Object at the given index.
 int hashCode()
           
static TupleN of(Object... values)
           
 int size()
          Returns the number of elements in this Tuple.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TupleN

public TupleN(Object... values)
Method Detail

of

public static TupleN of(Object... values)

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.