public class DefaultDataBag extends DefaultAbstractBag
DefaultAbstractBag.BagDelimiterTuple, DefaultAbstractBag.EndBag, DefaultAbstractBag.StartBagendBag, MAX_SPILL_FILES, mContents, mSize, mSpillFiles, startBag| Constructor and Description |
|---|
DefaultDataBag() |
DefaultDataBag(java.util.List<Tuple> listOfTuples)
This constructor creates a bag out of an existing list
of tuples by taking ownership of the list and NOT
copying the contents of the list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDistinct()
Find out if the bag is distinct.
|
boolean |
isSorted()
Find out if the bag is sorted.
|
java.util.Iterator<Tuple> |
iterator()
Get an iterator to the bag.
|
long |
spill()
Instructs an object to spill whatever it can to disk and release
references to any data structures it spills.
|
add, addAll, addAll, addAll, clear, compareTo, equals, getMemorySize, getSpillFile, hashCode, incSpillCount, incSpillCount, markSpillableIfNecessary, markStale, readFields, reportProgress, sampleContents, size, toString, warn, writepublic DefaultDataBag()
public DefaultDataBag(java.util.List<Tuple> listOfTuples)
listOfTuples - Listpublic boolean isSorted()
DataBagpublic boolean isDistinct()
DataBagpublic java.util.Iterator<Tuple> iterator()
DataBagpublic long spill()
SpillableCopyright © 2007-2012 The Apache Software Foundation