|
||||||||||
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 | |
---|---|
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 class TupleFactory
public Tuple newTuple(int size)
TupleFactory
newTuple
in class TupleFactory
size
- Number of fields in the tuple.
public Tuple newTuple(List c)
TupleFactory
newTuple
in class TupleFactory
c
- List of objects to use as the fields of the tuple.
public Tuple newTupleNoCopy(List list)
TupleFactory
newTupleNoCopy
in class TupleFactory
list
- List of objects that will become the fields of the tuple.
public Tuple newTuple(Object datum)
TupleFactory
newTuple
in class TupleFactory
datum
- Datum to put in the tuple.
public Class<? extends Tuple> tupleClass()
TupleFactory
tupleClass
in class TupleFactory
public Class<? extends TupleRawComparator> tupleRawComparatorClass()
TupleFactory
tupleRawComparatorClass
in class TupleFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |