Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.referencepoints
Class FullDatabaseReferencePoints.DatabaseProxy

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

Nested Class Summary
(package private)  class FullDatabaseReferencePoints.DatabaseProxy.ProxyIterator
          Iterator class
 
Field Summary
(package private)  Database<O> db
          The database we query
 
Constructor Summary
FullDatabaseReferencePoints.DatabaseProxy(Database<O> db)
          Constructor.
 
Method Summary
 Iterator<O> iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

db

Database<O extends NumberVector<O,?>> db
The database we query

Constructor Detail

FullDatabaseReferencePoints.DatabaseProxy

public FullDatabaseReferencePoints.DatabaseProxy(Database<O> db)
Constructor.

Parameters:
db - Database
Method Detail

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,?>>

Release 0.3 (2010-03-31_1612)