Class CassandraTokenRangeJDBCDataIterator
java.lang.Object
org.openspaces.persistency.cassandra.datasource.CassandraTokenRangeJDBCDataIterator
- All Implemented Interfaces:
DataIterator<Object>,Iterator<Object>
Note: the underlying cassandra jdbc implementation brings the entire batch when calling execute,
so SQLException exceptions will actually only be thrown during prepare statement and execute
statment Moreover, the iteration over the results is currently only logical because the entire
result set already lies in memory after execute statement returns.
- Since:
- 9.1.1
- Author:
- Dan Kilman
-
Constructor Summary
ConstructorsConstructorDescriptionCassandraTokenRangeJDBCDataIterator(SpaceDocumentColumnFamilyMapper mapper, ColumnFamilyMetadata columnFamilyMetadata, ConnectionResource connectionResource, CQLQueryContext queryContext, Object lastToken, int limit, CassandraConsistencyLevel readConsistencyLevel) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CassandraTokenRangeJDBCDataIterator
public CassandraTokenRangeJDBCDataIterator(SpaceDocumentColumnFamilyMapper mapper, ColumnFamilyMetadata columnFamilyMetadata, ConnectionResource connectionResource, CQLQueryContext queryContext, Object lastToken, int limit, CassandraConsistencyLevel readConsistencyLevel)
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
closeSelfResources
public void closeSelfResources() -
close
public void close()Description copied from interface:DataIteratorClean 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:
closein interfaceDataIterator<Object>
-
getLastToken
-
getLimit
public int getLimit() -
getCurrentTotalCount
public int getCurrentTotalCount()
-