Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.data
Interface DatabaseObjectGroup

All Superinterfaces:
Iterable<Integer>
All Known Implementing Classes:
Cluster, DatabaseObjectGroupArray, DatabaseObjectGroupCollection

public interface DatabaseObjectGroup
extends Iterable<Integer>

Interface for a collection of database references (IDs). The two main implementations are DatabaseObjectGroupCollection and DatabaseObjectGroupArray backed by an array or Collection respectively. Performance varies depending on the actual choice.

Author:
Erich Schubert

Method Summary
 Collection<Integer> getIDs()
          Retrieve collection access to the IDs
 Iterator<Integer> iterator()
          Retrieve Iterator access to the IDs.
 int size()
          Retrieve the collection / data size.
 

Method Detail

getIDs

Collection<Integer> getIDs()
Retrieve collection access to the IDs

Returns:
a collection of IDs

iterator

Iterator<Integer> iterator()
Retrieve Iterator access to the IDs.

Specified by:
iterator in interface Iterable<Integer>
Returns:
an iterator for the IDs

size

int size()
Retrieve the collection / data size.

Returns:
collection size

Release 0.2.1 (2009-07-13_1605)