Class MemStoreCompactorSegmentsIterator
java.lang.Object
org.apache.hadoop.hbase.regionserver.MemStoreSegmentsIterator
org.apache.hadoop.hbase.regionserver.MemStoreCompactorSegmentsIterator
- All Implemented Interfaces:
Iterator<ExtendedCell>
The MemStoreCompactorSegmentsIterator extends MemStoreSegmentsIterator and performs the scan for
compaction operation meaning it is based on SQM
-
Field Summary
Modifier and TypeFieldDescriptionprivate InternalScanner
private boolean
private final List<ExtendedCell>
private Iterator<ExtendedCell>
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.regionserver.MemStoreSegmentsIterator
scannerContext
-
Constructor Summary
ConstructorDescriptionMemStoreCompactorSegmentsIterator
(List<ImmutableSegment> segments, CellComparator comparator, int compactionKVMax, HStore store) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private InternalScanner
createScanner
(HStore store, List<KeyValueScanner> scanners) Creates the scanner for compacting the pipeline.boolean
hasNext()
next()
private boolean
Refill kev-value set (should be invoked only when KVS is empty) Returns true if KVS is non-emptyvoid
remove()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
LOG
-
kvs
-
hasMore
-
kvsIterator
-
compactingScanner
-
-
Constructor Details
-
MemStoreCompactorSegmentsIterator
public MemStoreCompactorSegmentsIterator(List<ImmutableSegment> segments, CellComparator comparator, int compactionKVMax, HStore store) throws IOException - Throws:
IOException
-
-
Method Details
-
hasNext
-
next
-
close
- Specified by:
close
in classMemStoreSegmentsIterator
-
remove
-
createScanner
private InternalScanner createScanner(HStore store, List<KeyValueScanner> scanners) throws IOException Creates the scanner for compacting the pipeline.- Returns:
- the scanner
- Throws:
IOException
-
refillKVS
Refill kev-value set (should be invoked only when KVS is empty) Returns true if KVS is non-empty
-