Package org.apache.accumulo.core.client
Class RowIterator
java.lang.Object
org.apache.accumulo.core.client.RowIterator
Group Key/Value pairs into Iterators over rows. Suggested usage:
 
RowIterator rowIterator = new RowIterator(client.createScanner(tableName, authorizations));
- 
Constructor SummaryConstructorsConstructorDescriptionRowIterator(Iterable<Map.Entry<Key, Value>> iterable) Create an iterator from an Iterable.RowIterator(Iterator<Map.Entry<Key, Value>> iterator) Create an iterator from an (ordered) sequence of KeyValue pairs.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining
- 
Constructor Details- 
RowIteratorCreate an iterator from an (ordered) sequence of KeyValue pairs.
- 
RowIteratorCreate an iterator from an Iterable.
 
- 
- 
Method Details- 
hasNextpublic boolean hasNext()Returns true if there is at least one more row to get. If the last row hasn't been fully read, this method will read through the end of the last row so it can determine if the underlying iterator has a next row. The last row is disabled from future use.
- 
nextFetch the next row.
- 
removepublic void remove()Unsupported.
- 
getKVCountpublic long getKVCount()Get a count of the total number of entries in all rows read so far.
 
-