|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.data.BagFactory
org.apache.pig.data.DefaultBagFactory
public class DefaultBagFactory
Default implementation of BagFactory.
Method Summary | |
---|---|
DataBag |
newDefaultBag()
Get a default (unordered, not distinct) data bag. |
DataBag |
newDefaultBag(List<Tuple> listOfTuples)
Get a default (unordered, not distinct) data bag from an existing list of tuples. |
DataBag |
newDistinctBag()
Get a distinct data bag. |
DataBag |
newSortedBag(Comparator<Tuple> comp)
Get a sorted data bag. |
Methods inherited from class org.apache.pig.data.BagFactory |
---|
getInstance, registerBag, resetSelf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public DataBag newDefaultBag()
newDefaultBag
in class BagFactory
public DataBag newDefaultBag(List<Tuple> listOfTuples)
newDefaultBag
in class BagFactory
listOfTuples
- list of tuples to be placed in the bag. This list may not be
copied, it may be used directly by the created bag.
public DataBag newSortedBag(Comparator<Tuple> comp)
newSortedBag
in class BagFactory
comp
- Comparator that controls how the data is sorted.
If null, default comparator will be used.
public DataBag newDistinctBag()
newDistinctBag
in class BagFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |