de.lmu.ifi.dbs.elki.datasource.filter
Class FixedDBIDsFilter

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.datasource.filter.FixedDBIDsFilter
All Implemented Interfaces:
ObjectFilter

public class FixedDBIDsFilter
extends Object
implements ObjectFilter

This filter assigns static DBIDs, based on the sequence the objects appear in the bundle by adding a column of DBID type to the bundle.


Nested Class Summary
static class FixedDBIDsFilter.Parameterizer
          Parameterization class.
 
Field Summary
static OptionID IDSTART_ID
          Optional parameter to specify the first object ID to use.
(package private)  int startid
          The first ID to assign
 
Constructor Summary
FixedDBIDsFilter(int startid)
          Constructor.
 
Method Summary
 MultipleObjectsBundle filter(MultipleObjectsBundle objects)
          Filter a set of object packages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDSTART_ID

public static final OptionID IDSTART_ID
Optional parameter to specify the first object ID to use.

Key: -dbc.startid


startid

final int startid
The first ID to assign

Constructor Detail

FixedDBIDsFilter

public FixedDBIDsFilter(int startid)
Constructor.

Parameters:
startid - ID to start enumerating with.
Method Detail

filter

public MultipleObjectsBundle filter(MultipleObjectsBundle objects)
Description copied from interface: ObjectFilter
Filter a set of object packages.

Specified by:
filter in interface ObjectFilter
Parameters:
objects - Object to filter
Returns:
Filtered objects

Release 0.4.0 (2011-09-20_1324)