This project has retired. For details please refer to its
Attic page.
TupleFactory (Apache Crunch 0.9.0 API)
org.apache.crunch.types
Class TupleFactory<T extends Tuple>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TupleFactory
public TupleFactory()
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.