public class SortedDataBag extends DefaultAbstractBag
DefaultAbstractBag.BagDelimiterTuple, DefaultAbstractBag.EndBag, DefaultAbstractBag.StartBagendBag, MAX_SPILL_FILES, mContents, mSize, mSpillFiles, startBag| Constructor and Description |
|---|
SortedDataBag(Comparator<Tuple> comp) |
| Modifier and Type | Method and Description |
|---|---|
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 |
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, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SortedDataBag(Comparator<Tuple> comp)
comp - Comparator to use to do the sorting. If null,
DefaultComparator will be used.public boolean isSorted()
DataBagpublic boolean isDistinct()
DataBagpublic Iterator<Tuple> iterator()
DataBagpublic long spill()
SpillableCopyright © 2007-2017 The Apache Software Foundation