com.bigdata.relation.accesspath
Interface IMultiSourceCloseableIterator<E>

All Superinterfaces:
ICloseableIterator<E>, Iterator<E>
All Known Implementing Classes:
MultiSourceSequentialCloseableIterator

public interface IMultiSourceCloseableIterator<E>
extends ICloseableIterator<E>

An interface which permits new sources to be attached dynamically. The decision to accept a new source via add(ICloseableIterator) or to ICloseableIterator.close() the iterator must be atomic. In particular, it is illegal for a source to be accepted after the iterator has been closed.

Version:
$Id: IMultiSourceCloseableIterator.java 6024 2012-02-13 18:53:58Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 boolean add(ICloseableIterator<E> src)
          Add a source.
 
Methods inherited from interface com.bigdata.striterator.ICloseableIterator
close
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

add

boolean add(ICloseableIterator<E> src)
Add a source. If the iterator already reports that it is closed then the new source can not be added and this method will return false.

Parameters:
src - The source.
Returns:
true iff the source could be added.


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.