org.scale7.cassandra.pelops
Class SuperColumnIterator

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

public class SuperColumnIterator
extends PageOfIterator<org.apache.cassandra.thrift.SuperColumn>

Encapsulates the logic required to iterate over super columns. See Selector.iterateSuperColumnsFromRow(String, Bytes, 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
 
Constructor Summary
SuperColumnIterator(Selector selector, String columnFamily, Bytes rowKey, Bytes startBeyondName, boolean reversed, int batchSize, org.apache.cassandra.thrift.ConsistencyLevel cLevel)
           
 
Method Summary
protected  List<org.apache.cassandra.thrift.SuperColumn> fetchNextBatch()
           
protected  Bytes nextStartBeyondName(List<org.apache.cassandra.thrift.SuperColumn> 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
 

Constructor Detail

SuperColumnIterator

public SuperColumnIterator(Selector selector,
                           String columnFamily,
                           Bytes rowKey,
                           Bytes startBeyondName,
                           boolean reversed,
                           int batchSize,
                           org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Method Detail

fetchNextBatch

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

nextStartBeyondName

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


Copyright © 2011. All Rights Reserved.