|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.data.BagFactory
public class BagFactory
A bag factory. Can be used to generate different types of bags depending on what is needed.
Method Summary | |
---|---|
static BagFactory |
getInstance()
Get a reference to the singleton factory. |
DataBag |
newDefaultBag()
Get a default (unordered, not distinct) data bag. |
DataBag |
newDistinctBag()
Get a distinct data bag. |
DataBag |
newSortedBag(EvalSpec spec)
Get a sorted data bag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BagFactory getInstance()
public DataBag newDefaultBag()
public DataBag newSortedBag(EvalSpec spec)
spec
- EvalSpec that controls how the data is sorted.
If null, default comparator will be used.public DataBag newDistinctBag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |