- add
Add a tuple to the bag.
- addAll
- compareTo
This method is potentially very expensive since it may require a sort of the
bag; don't call it unle
- getMemorySize
Return the size of memory usage.
- incSpillCount
- isDistinct
- isSorted
- iterator
- markSpillableIfNecessary
All bag implementations that can get big enough to be spilled should call this
method after every ti
- roundToEight
Memory size of objects are rounded to multiple of 8 bytes
- sampleContents
Sample every SPILL_SAMPLE_FREQUENCYth tuple until we reach a max of
SPILL_SAMPLE_SIZE to get an esti
- size
Get the number of elements in the bag, both in memory and on disk.