@InterfaceAudience.Private @InterfaceStability.Evolving public class InternalDistinctBag extends SortedSpillBag
SelfSpillBag.MemoryLimitsDefaultAbstractBag.BagDelimiterTuple, DefaultAbstractBag.EndBag, DefaultAbstractBag.StartBagmemLimitendBag, MAX_SPILL_FILES, mContents, mSize, mSpillFiles, startBag| Constructor and Description | 
|---|
InternalDistinctBag()  | 
InternalDistinctBag(int bagCount)  | 
InternalDistinctBag(int bagCount,
                   float percent)  | 
| 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. 
 | 
java.util.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. 
 | 
proactive_spilladdAll, addAll, addAll, clear, compareTo, equals, getMemorySize, getSpillFile, hashCode, incSpillCount, incSpillCount, markSpillableIfNecessary, markStale, readFields, reportProgress, sampleContents, toString, warn, writepublic InternalDistinctBag()
public InternalDistinctBag(int bagCount)
public InternalDistinctBag(int bagCount,
                           float percent)
public boolean isSorted()
DataBagpublic boolean isDistinct()
DataBagpublic long size()
DefaultAbstractBagsize in interface DataBagsize in class DefaultAbstractBagpublic java.util.Iterator<Tuple> iterator()
DataBagpublic void add(Tuple t)
DefaultAbstractBagadd in interface DataBagadd in class DefaultAbstractBagt - tuple to add.public long spill()
SpillableCopyright © 2007-2025 The Apache Software Foundation