org.apache.cassandra.db
Class RowIterator

java.lang.Object
  extended by org.apache.cassandra.db.RowIterator
All Implemented Interfaces:
java.io.Closeable, java.util.Iterator<Row>

public class RowIterator
extends java.lang.Object
implements java.io.Closeable, java.util.Iterator<Row>

Row iterator that allows us to close the underlying iterators.


Constructor Summary
RowIterator(ReducingIterator<IColumnIterator,Row> reduced, java.util.List<java.util.Iterator<IColumnIterator>> iterators)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 Row next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowIterator

public RowIterator(ReducingIterator<IColumnIterator,Row> reduced,
                   java.util.List<java.util.Iterator<IColumnIterator>> iterators)
Parameters:
reduced - Reducing iterator that takes multiple iterators and provides us with one row at the time.
iterators - The underlying iterators that we will close when done.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Row>

next

public Row next()
Specified by:
next in interface java.util.Iterator<Row>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Row>

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException


Copyright © 2010 The Apache Software Foundation