org.gcube.contentmanagement.contentmanager.smsplugin.delegates.util
Class CollectionIterator
java.lang.Object
org.gcube.contentmanagement.contentmanager.smsplugin.delegates.util.NextIterator<GDoc,InfoObjectTree>
org.gcube.contentmanagement.contentmanager.smsplugin.delegates.util.CollectionIterator
public class CollectionIterator
- extends NextIterator<GDoc,InfoObjectTree>
- Author:
- Federico De Faveri defaveri@isti.cnr.it
Constructor Summary |
CollectionIterator(GCUBELog logger,
java.lang.String collectionId,
inputIterator,
Predicate projection)
Creates a new Collection iterator. |
Method Summary |
GDoc |
generateNext(InfoObjectTree input)
Generates the next element. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionIterator
public CollectionIterator(GCUBELog logger,
java.lang.String collectionId,
inputIterator,
Predicate projection)
- Creates a new Collection iterator.
- Parameters:
logger
- the logger to use.collectionId
- the collection id.inputIterator
- the InfoObjectTree source.projection
- the projection to apply.
generateNext
public GDoc generateNext(InfoObjectTree input)
- Generates the next element.
- Specified by:
generateNext
in class NextIterator<GDoc,InfoObjectTree>
- Parameters:
input
- the input element.
- Returns:
- the produced object.