Class CountingIterator
- java.lang.Object
-
- org.apache.accumulo.core.iterators.WrappingIterator
-
- org.apache.accumulo.tserver.tablet.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 CountingIterator
deepCopy(IteratorEnvironment env)
long
getCount()
void
init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)
void
next()
-
Methods inherited from class org.apache.accumulo.core.iterators.WrappingIterator
getSource, getTopKey, getTopValue, hasTop, 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:
deepCopy
in interfaceSortedKeyValueIterator<Key,Value>
- Overrides:
deepCopy
in classWrappingIterator
-
init
public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)
- Specified by:
init
in interfaceSortedKeyValueIterator<Key,Value>
- Overrides:
init
in classWrappingIterator
-
next
public void next() throws IOException
- Specified by:
next
in interfaceSortedKeyValueIterator<Key,Value>
- Overrides:
next
in classWrappingIterator
- Throws:
IOException
-
getCount
public long getCount()
-
-