Class CountingIterator
- java.lang.Object
-
- org.apache.accumulo.core.iterators.WrappingIterator
-
- org.apache.accumulo.server.compaction.CountingIterator
-
- All Implemented Interfaces:
SortedKeyValueIterator<Key,Value>,YieldingKeyValueIterator<Key,Value>
public class CountingIterator extends WrappingIterator
-
-
Constructor Summary
Constructors Constructor Description CountingIterator(SortedKeyValueIterator<Key,Value> source, AtomicLong entriesRead)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountingIteratordeepCopy(IteratorEnvironment env)longgetCount()voidinit(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)voidnext()-
Methods inherited from class org.apache.accumulo.core.iterators.WrappingIterator
getSource, getTopKey, getTopValue, hasTop, isRunningLowOnMemory, seek, setSource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.core.iterators.YieldingKeyValueIterator
enableYielding
-
-
-
-
Constructor Detail
-
CountingIterator
public CountingIterator(SortedKeyValueIterator<Key,Value> source, AtomicLong entriesRead)
-
-
Method Detail
-
deepCopy
public CountingIterator deepCopy(IteratorEnvironment env)
- Specified by:
deepCopyin interfaceSortedKeyValueIterator<Key,Value>- Overrides:
deepCopyin classWrappingIterator
-
init
public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)
- Specified by:
initin interfaceSortedKeyValueIterator<Key,Value>- Overrides:
initin classWrappingIterator
-
next
public void next() throws IOException- Specified by:
nextin interfaceSortedKeyValueIterator<Key,Value>- Overrides:
nextin classWrappingIterator- Throws:
IOException
-
getCount
public long getCount()
-
-