Package elki.datasource
Class BundleDatabaseConnection
- java.lang.Object
-
- elki.datasource.AbstractDatabaseConnection
-
- elki.datasource.BundleDatabaseConnection
-
- All Implemented Interfaces:
DatabaseConnection
public class BundleDatabaseConnection extends AbstractDatabaseConnection
Class to load a database from a bundle file.Bundle files are stored in a compact binary format along with metadata, so that parsing should be simpler, albeit the focus was on using it in on-disk indexes.
- Since:
- 0.5.5
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BundleDatabaseConnection.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.Path
infile
File to load.private static Logging
LOG
Class logger.-
Fields inherited from class elki.datasource.AbstractDatabaseConnection
filters, LABEL_CONCATENATION
-
-
Constructor Summary
Constructors Constructor Description BundleDatabaseConnection(java.util.List<? extends ObjectFilter> filters, java.nio.file.Path infile)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Logging
getLogger()
Get the logger for this database connection.MultipleObjectsBundle
loadData()
Returns the initial data for a database.-
Methods inherited from class elki.datasource.AbstractDatabaseConnection
invokeBundleFilters, invokeStreamFilters
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger.
-
infile
private java.nio.file.Path infile
File to load.
-
-
Constructor Detail
-
BundleDatabaseConnection
public BundleDatabaseConnection(java.util.List<? extends ObjectFilter> filters, java.nio.file.Path infile)
Constructor.- Parameters:
filters
- Filtersinfile
- Input file
-
-
Method Detail
-
loadData
public MultipleObjectsBundle loadData()
Description copied from interface:DatabaseConnection
Returns the initial data for a database.- Returns:
- a database object bundle
-
getLogger
protected Logging getLogger()
Description copied from class:AbstractDatabaseConnection
Get the logger for this database connection.- Specified by:
getLogger
in classAbstractDatabaseConnection
- Returns:
- Logger
-
-