org.gcube.contentmanagement.contentmanager.stubs.calls.iterators
Class BaseRSIterator<T>

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.stubs.calls.iterators.BaseRSIterator<T>
All Implemented Interfaces:
RemoteIterator<T>
Direct Known Subclasses:
AsyncRSIterator, RSIterator

public abstract class BaseRSIterator<T>
extends java.lang.Object
implements RemoteIterator<T>

A partial implementation of ResultSet-backed iterators with embedded result parsers.

Author:
Fabio Simeoni (University of Strathclyde)

Method Summary
 void close()
          Communicates that the iterator is no longer needed, in case the implementation can use it to optimise consumption of underlying resources.
 java.util.Iterator<GenericRecord> getRSIterator()
          Returns the underlying iterator.
 java.lang.String locator()
          Returns a reference to the remote element list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gcube.contentmanagement.contentmanager.stubs.calls.iterators.RemoteIterator
hasNext, next
 

Method Detail

getRSIterator

public java.util.Iterator<GenericRecord> getRSIterator()
Returns the underlying iterator.

Returns:
the iterator.

locator

public java.lang.String locator()
Returns a reference to the remote element list.

Specified by:
locator in interface RemoteIterator<T>
Returns:
the reference.

close

public void close()
Communicates that the iterator is no longer needed, in case the implementation can use it to optimise consumption of underlying resources.

Specified by:
close in interface RemoteIterator<T>