public class CountingIterator extends WrappingIterator
| Constructor and Description |
|---|
CountingIterator(SortedKeyValueIterator<Key,Value> source,
AtomicLong entriesRead) |
| Modifier and Type | Method and Description |
|---|---|
CountingIterator |
deepCopy(IteratorEnvironment env) |
long |
getCount() |
void |
init(SortedKeyValueIterator<Key,Value> source,
Map<String,String> options,
IteratorEnvironment env) |
void |
next() |
getSource, getTopKey, getTopValue, hasTop, seek, setSourcepublic CountingIterator(SortedKeyValueIterator<Key,Value> source, AtomicLong entriesRead)
public CountingIterator deepCopy(IteratorEnvironment env)
deepCopy in interface SortedKeyValueIterator<Key,Value>deepCopy in class WrappingIteratorpublic void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)
init in interface SortedKeyValueIterator<Key,Value>init in class WrappingIteratorpublic void next()
throws IOException
next in interface SortedKeyValueIterator<Key,Value>next in class WrappingIteratorIOExceptionpublic long getCount()
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.