GigaSpaces XAP 9.1 API

org.openspaces.persistency.cassandra.datasource
Class DataIteratorAdapter<T>

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

public class DataIteratorAdapter<T>
extends Object
implements DataIterator<T>

A simple adapter from Iterator to DataIterator

Since:
9.1.1
Author:
Dan Kilman

Constructor Summary
DataIteratorAdapter(Iterator<T> iterator)
           
 
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.
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataIteratorAdapter

public DataIteratorAdapter(Iterator<T> iterator)
Method Detail

hasNext

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

next

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

remove

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

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<T>

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.