public class DistinctDataBag extends DefaultAbstractBag
DefaultAbstractBag.BagDelimiterTuple, DefaultAbstractBag.EndBag, DefaultAbstractBag.StartBagendBag, MAX_SPILL_FILES, mContents, mSize, mSpillFiles, startBag| Constructor and Description |
|---|
DistinctDataBag() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Tuple t)
Add a tuple to the bag.
|
boolean |
isDistinct()
Find out if the bag is distinct.
|
boolean |
isSorted()
Find out if the bag is sorted.
|
Iterator<Tuple> |
iterator()
Get an iterator to the bag.
|
long |
size()
Get the number of elements in the bag, both in memory and on disk.
|
long |
spill()
Instructs an object to spill whatever it can to disk and release
references to any data structures it spills.
|
addAll, addAll, addAll, clear, compareTo, equals, getMemorySize, getSpillFile, hashCode, incSpillCount, incSpillCount, markSpillableIfNecessary, markStale, readFields, reportProgress, sampleContents, toString, warn, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic boolean isSorted()
DataBagpublic boolean isDistinct()
DataBagpublic long size()
DefaultAbstractBagsize in interface DataBagsize in class DefaultAbstractBagpublic Iterator<Tuple> iterator()
DataBagpublic void add(Tuple t)
DefaultAbstractBagadd in interface DataBagadd in class DefaultAbstractBagt - tuple to add.public long spill()
SpillableCopyright © 2007-2017 The Apache Software Foundation