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

org.apache.crunch.types
Class TupleFactory<T extends Tuple>

java.lang.Object
  extended by org.apache.crunch.types.TupleFactory<T>
All Implemented Interfaces:
Serializable

public abstract class TupleFactory<T extends Tuple>
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static TupleFactory<Pair> PAIR
           
static TupleFactory<Tuple3> TUPLE3
           
static TupleFactory<Tuple4> TUPLE4
           
static TupleFactory<TupleN> TUPLEN
           
 
Constructor Summary
TupleFactory()
           
 
Method Summary
static
<T extends Tuple>
TupleFactory<T>
create(Class<T> clazz, Class... typeArgs)
           
static
<T extends Tuple>
TupleFactory<T>
getTupleFactory(Class<T> tupleClass)
          Get the TupleFactory for a given Tuple implementation.
 void initialize()
           
abstract  T makeTuple(Object... values)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAIR

public static final TupleFactory<Pair> PAIR

TUPLE3

public static final TupleFactory<Tuple3> TUPLE3

TUPLE4

public static final TupleFactory<Tuple4> TUPLE4

TUPLEN

public static final TupleFactory<TupleN> TUPLEN
Constructor Detail

TupleFactory

public TupleFactory()
Method Detail

initialize

public void initialize()

makeTuple

public abstract T makeTuple(Object... values)

getTupleFactory

public static <T extends Tuple> TupleFactory<T> getTupleFactory(Class<T> tupleClass)
Get the TupleFactory for a given Tuple implementation.

Parameters:
tupleClass - The class for which the factory is to be retrieved
Returns:
The appropriate TupleFactory

create

public static <T extends Tuple> TupleFactory<T> create(Class<T> clazz,
                                                       Class... typeArgs)


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