|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.accumulo.core.client.RowIterator
public class RowIterator
Group Key/Value pairs into Iterators over rows. Suggested usage:
RowIterator rowIterator = new RowIterator(connector.createScanner(tableName, authorizations));
| Constructor Summary | |
|---|---|
RowIterator(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 Summary | |
|---|---|
long |
getKVCount()
Get a count of the total number of entries in all rows read so far. |
boolean |
hasNext()
Returns true if there is at least one more row to get. |
Iterator<Map.Entry<Key,Value>> |
next()
Fetch the next row. |
void |
remove()
Unsupported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RowIterator(Iterator<Map.Entry<Key,Value>> iterator)
iterator - public RowIterator(Iterable<Map.Entry<Key,Value>> iterable)
iterable - | Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<Iterator<Map.Entry<Key,Value>>>public Iterator<Map.Entry<Key,Value>> next()
next in interface Iterator<Iterator<Map.Entry<Key,Value>>>public void remove()
remove in interface Iterator<Iterator<Map.Entry<Key,Value>>>public long getKVCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||