public class CompactionIterator extends CompactionInfo.Holder implements UnfilteredPartitionIterator
On top of the actual merging the source iterators, this class:
| Constructor and Description |
|---|
CompactionIterator(OperationType type,
java.util.List<ISSTableScanner> scanners,
CompactionController controller,
int nowInSec,
java.util.UUID compactionId) |
CompactionIterator(OperationType type,
java.util.List<ISSTableScanner> scanners,
CompactionController controller,
int nowInSec,
java.util.UUID compactionId,
CompactionMetrics metrics) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompactionInfo |
getCompactionInfo() |
long[] |
getMergedRowCounts() |
long |
getTotalSourceCQLRows() |
boolean |
hasNext() |
boolean |
isForThrift()
Whether that partition iterator is for a thrift queries.
|
CFMetaData |
metadata() |
UnfilteredRowIterator |
next() |
void |
remove() |
java.lang.String |
toString() |
isStopRequested, stoppublic CompactionIterator(OperationType type, java.util.List<ISSTableScanner> scanners, CompactionController controller, int nowInSec, java.util.UUID compactionId)
public CompactionIterator(OperationType type, java.util.List<ISSTableScanner> scanners, CompactionController controller, int nowInSec, java.util.UUID compactionId, CompactionMetrics metrics)
public boolean isForThrift()
UnfilteredPartitionIteratorIf this is true, the partition iterator may return some empty UnfilteredRowIterator and those should be preserved as thrift include partitions that "exists" (have some cells even if this are actually deleted) but have nothing matching the query.
isForThrift in interface UnfilteredPartitionIteratorpublic CFMetaData metadata()
metadata in interface UnfilteredPartitionIteratorpublic CompactionInfo getCompactionInfo()
getCompactionInfo in class CompactionInfo.Holderpublic long[] getMergedRowCounts()
public long getTotalSourceCQLRows()
public boolean hasNext()
hasNext in interface java.util.Iterator<UnfilteredRowIterator>public UnfilteredRowIterator next()
next in interface java.util.Iterator<UnfilteredRowIterator>public void remove()
remove in interface java.util.Iterator<UnfilteredRowIterator>public void close()
close in interface java.lang.AutoCloseableclose in interface BasePartitionIterator<UnfilteredRowIterator>close in interface CloseableIterator<UnfilteredRowIterator>public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 The Apache Software Foundation