Class DBIDRangeDatabaseConnection

  • All Implemented Interfaces:

    @Description("This class generates a sequence of DBIDs to \'load\' into a database. This is useful when using an external data matrix, and not requiring access to the actual vectors.")
    public class DBIDRangeDatabaseConnection
    extends java.lang.Object
    implements DatabaseConnection
    This is a fake datasource that produces a static DBID range only.

    This is useful when using, e.g., a distance matrix to access external data.

    Erich Schubert
    • Field Summary

      Modifier and Type Field Description
      (package private) int count
      Number of records to produce
      (package private) int start
      Begin of interval
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MultipleObjectsBundle loadData()
      Returns the initial data for a database.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • start

        int start
        Begin of interval
      • count

        int count
        Number of records to produce
    • Constructor Detail

      • DBIDRangeDatabaseConnection

        public DBIDRangeDatabaseConnection​(int start,
                                           int count)
        start - Starting ID
        count - Number of records to produce