me.prettyprint.cassandra.service
Class ColumnSliceIterator<K,N,V>

java.lang.Object
  extended by me.prettyprint.cassandra.service.ColumnSliceIterator<K,N,V>
All Implemented Interfaces:
Iterator

public class ColumnSliceIterator<K,N,V>
extends Object
implements Iterator

Author:
thrykol

Nested Class Summary
static interface ColumnSliceIterator.ColumnSliceFinish<N>
          When iterating over a ColumnSlice, it may be desirable to move the finish point for each query.
 
Constructor Summary
ColumnSliceIterator(SliceQuery<K,N,V> query, N start, ColumnSliceIterator.ColumnSliceFinish<N> finish, boolean reversed)
          Constructor
ColumnSliceIterator(SliceQuery<K,N,V> query, N start, N finish, boolean reversed)
          Constructor
 
Method Summary
 boolean hasNext()
           
 HColumn<N,V> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnSliceIterator

public ColumnSliceIterator(SliceQuery<K,N,V> query,
                           N start,
                           N finish,
                           boolean reversed)
Constructor

Parameters:
query - Base SliceQuery to execute
start - Starting point of the range
finish - Finish point of the range.
reversed - Whether or not the columns should be reversed

ColumnSliceIterator

public ColumnSliceIterator(SliceQuery<K,N,V> query,
                           N start,
                           ColumnSliceIterator.ColumnSliceFinish<N> finish,
                           boolean reversed)
Constructor

Parameters:
query - Base SliceQuery to execute
start - Starting point of the range
finish - Finish point of the range. Allows for a dynamically determined point
reversed - Whether or not the columns should be reversed
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public HColumn<N,V> next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator


Copyright © 2011. All Rights Reserved.