org.scale7.cassandra.pelops
Class ColumnIterator

java.lang.Object
  extended by org.scale7.cassandra.pelops.PageOfIterator<org.apache.cassandra.thrift.Column>
      extended by org.scale7.cassandra.pelops.ColumnIterator
All Implemented Interfaces:
Iterator<org.apache.cassandra.thrift.Column>

public class ColumnIterator
extends PageOfIterator<org.apache.cassandra.thrift.Column>

Encapsulates the logic required to iterate over columns. See Selector.iterateColumnsFromRow(String, org.scale7.cassandra.pelops.Bytes, org.scale7.cassandra.pelops.Bytes, boolean, int, org.apache.cassandra.thrift.ConsistencyLevel) for more detail.


Field Summary
 
Fields inherited from class org.scale7.cassandra.pelops.PageOfIterator
batchSize, cLevel, columnFamily, reversed, rowKey, selector, startBeyondName
 
Method Summary
protected  List<org.apache.cassandra.thrift.Column> fetchNextBatch()
           
protected  Bytes nextStartBeyondName(List<org.apache.cassandra.thrift.Column> batch)
           
 
Methods inherited from class org.scale7.cassandra.pelops.PageOfIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fetchNextBatch

protected List<org.apache.cassandra.thrift.Column> fetchNextBatch()
Specified by:
fetchNextBatch in class PageOfIterator<org.apache.cassandra.thrift.Column>

nextStartBeyondName

protected Bytes nextStartBeyondName(List<org.apache.cassandra.thrift.Column> batch)
Specified by:
nextStartBeyondName in class PageOfIterator<org.apache.cassandra.thrift.Column>


Copyright © 2011. All Rights Reserved.