de.lmu.ifi.dbs.elki.utilities
Class DatabaseUtil.RelationObjectIterator<O>

java.lang.Object
  extended by 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.


Field Summary
(package private)  Relation<? extends O> database
          The database we use
(package private)  Iterator<DBID> iter
          The real iterator.
 
Constructor Summary
DatabaseUtil.RelationObjectIterator(Iterator<DBID> iter, Relation<? extends O> database)
          Full Constructor.
DatabaseUtil.RelationObjectIterator(Relation<? extends O> database)
          Simplified constructor.
 
Method Summary
 boolean hasNext()
           
 O next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iter

final Iterator<DBID> iter
The real iterator.


database

final Relation<? extends O> database
The database we use

Constructor Detail

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
Method Detail

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>

Release 0.4.0 (2011-09-20_1324)