GigaSpaces XAP 9.7.2 API

org.openspaces.persistency.cassandra.datasource
Class CassandraTokenRangeAwareDataIterator

java.lang.Object
  extended by org.openspaces.persistency.cassandra.datasource.CassandraTokenRangeAwareDataIterator
All Implemented Interfaces:
DataIterator<Object>, Iterator<Object>

public class CassandraTokenRangeAwareDataIterator
extends Object
implements DataIterator<Object>

Since:
9.1.1
Author:
Dan Kilman

Constructor Summary
CassandraTokenRangeAwareDataIterator(SpaceDocumentColumnFamilyMapper mapper, ColumnFamilyMetadata columnFamilyMetadata, ConnectionResource connectionResource, CQLQueryContext queryContext, int maxResults, int batchLimit, CassandraConsistencyLevel readConsistencyLevel)
           
 
Method Summary
 void close()
          Clean up after any resources associated with this iterator The iterator can be closed even if the iterator wasn't iterated over all of its elements.
 void closeSelfResources()
           
 boolean hasNext()
           
 SpaceDocument next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CassandraTokenRangeAwareDataIterator

public CassandraTokenRangeAwareDataIterator(SpaceDocumentColumnFamilyMapper mapper,
                                            ColumnFamilyMetadata columnFamilyMetadata,
                                            ConnectionResource connectionResource,
                                            CQLQueryContext queryContext,
                                            int maxResults,
                                            int batchLimit,
                                            CassandraConsistencyLevel readConsistencyLevel)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Object>

next

public SpaceDocument next()
Specified by:
next in interface Iterator<Object>

remove

public void remove()
Specified by:
remove in interface Iterator<Object>

closeSelfResources

public void closeSelfResources()

close

public void close()
Description copied from interface: DataIterator
Clean up after any resources associated with this iterator The iterator can be closed even if the iterator wasn't iterated over all of its elements.

Specified by:
close in interface DataIterator<Object>

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.