de.lmu.ifi.dbs.elki.utilities.referencepoints
Class FullDatabaseReferencePoints.DatabaseProxy
java.lang.Object
java.util.AbstractCollection<O>
de.lmu.ifi.dbs.elki.utilities.referencepoints.FullDatabaseReferencePoints.DatabaseProxy
- All Implemented Interfaces:
- Iterable<O>, Collection<O>
- Enclosing class:
- FullDatabaseReferencePoints<O extends NumberVector<O,?>>
class FullDatabaseReferencePoints.DatabaseProxy
- extends AbstractCollection<O>
- implements Collection<O>
Proxy class to map a database ID collection to a database Object collection.
- Author:
- Erich Schubert
Field Summary |
(package private) Database<O> |
db
The database we query |
Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
db
Database<O extends NumberVector<O,?>> db
- The database we query
FullDatabaseReferencePoints.DatabaseProxy
public FullDatabaseReferencePoints.DatabaseProxy(Database<O> db)
- Constructor.
- Parameters:
db
- Database
iterator
public Iterator<O> iterator()
- Specified by:
iterator
in interface Iterable<O extends NumberVector<O,?>>
- Specified by:
iterator
in interface Collection<O extends NumberVector<O,?>>
- Specified by:
iterator
in class AbstractCollection<O extends NumberVector<O,?>>
size
public int size()
- Specified by:
size
in interface Collection<O extends NumberVector<O,?>>
- Specified by:
size
in class AbstractCollection<O extends NumberVector<O,?>>