|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pig.data.TupleFactory
org.apache.pig.data.BinSedesTupleFactory
@InterfaceAudience.Private public class BinSedesTupleFactory
Default implementation of TupleFactory.
| Constructor Summary | |
|---|---|
BinSedesTupleFactory()
|
|
| Method Summary | |
|---|---|
boolean |
isFixedSize()
This method is used to inspect whether the Tuples created by this factory will be of a fixed size when they are created. |
Tuple |
newTuple()
Create an empty tuple. |
Tuple |
newTuple(int size)
Create a tuple with size fields. |
Tuple |
newTuple(List c)
Create a tuple from the provided list of objects. |
Tuple |
newTuple(Object datum)
Create a tuple with a single element. |
Tuple |
newTupleNoCopy(List list)
Create a tuple from a provided list of objects, keeping the provided list. |
Class<? extends Tuple> |
tupleClass()
Return the actual class representing a tuple that the implementing factory will be returning. |
Class<? extends TupleRawComparator> |
tupleRawComparatorClass()
Return the actual class implementing the raw comparator for tuples that the factory will be returning. |
| Methods inherited from class org.apache.pig.data.TupleFactory |
|---|
getInstance, resetSelf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinSedesTupleFactory()
| Method Detail |
|---|
public Tuple newTuple()
TupleFactory
newTuple in interface TupleMaker<Tuple>newTuple in class TupleFactorypublic Tuple newTuple(int size)
TupleFactory
newTuple in interface TupleMaker<Tuple>newTuple in class TupleFactorysize - Number of fields in the tuple.
public Tuple newTuple(List c)
TupleFactory
newTuple in class TupleFactoryc - List of objects to use as the fields of the tuple.
public Tuple newTupleNoCopy(List list)
TupleFactory
newTupleNoCopy in class TupleFactorylist - List of objects that will become the fields of the tuple.
public Tuple newTuple(Object datum)
TupleFactory
newTuple in class TupleFactorydatum - Datum to put in the tuple.
public Class<? extends Tuple> tupleClass()
TupleFactory
tupleClass in class TupleFactorypublic Class<? extends TupleRawComparator> tupleRawComparatorClass()
TupleFactory
tupleRawComparatorClass in class TupleFactorypublic boolean isFixedSize()
TupleFactory
isFixedSize in class TupleFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||