de.lmu.ifi.dbs.elki.utilities
Class DatabaseUtil.RelationObjectIterator<O>
java.lang.Object
de.lmu.ifi.dbs.elki.utilities.DatabaseUtil.RelationObjectIterator<O>
- All Implemented Interfaces:
- Iterator<O>
- Enclosing class:
- DatabaseUtil
public static class DatabaseUtil.RelationObjectIterator<O>
- extends Object
- implements Iterator<O>
Iterator class that retrieves the given objects from the database.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iter
final Iterator<DBID> iter
- The real iterator.
database
final Relation<? extends O> database
- The database we use
DatabaseUtil.RelationObjectIterator
public DatabaseUtil.RelationObjectIterator(Iterator<DBID> iter,
Relation<? extends O> database)
- Full Constructor.
- Parameters:
iter
- Original iterator.database
- Database
DatabaseUtil.RelationObjectIterator
public DatabaseUtil.RelationObjectIterator(Relation<? extends O> database)
- Simplified constructor.
- Parameters:
database
- Database
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<O>
next
public O next()
- Specified by:
next
in interface Iterator<O>
remove
public void remove()
- Specified by:
remove
in interface Iterator<O>