Package elki.datasource
Class FileBasedDatabaseConnection
- java.lang.Object
-
- elki.datasource.AbstractDatabaseConnection
-
- elki.datasource.InputStreamDatabaseConnection
-
- elki.datasource.FileBasedDatabaseConnection
-
- All Implemented Interfaces:
DatabaseConnection
,java.lang.AutoCloseable
@Priority(100) public class FileBasedDatabaseConnection extends InputStreamDatabaseConnection
File based database connection based on the parser to be set.- Since:
- 0.1
- Author:
- Arthur Zimek
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileBasedDatabaseConnection.Par
Parameterization class.
-
Field Summary
-
Fields inherited from class elki.datasource.InputStreamDatabaseConnection
in, ins, parser
-
Fields inherited from class elki.datasource.AbstractDatabaseConnection
filters, LABEL_CONCATENATION
-
-
Constructor Summary
Constructors Constructor Description FileBasedDatabaseConnection(java.util.List<? extends ObjectFilter> filters, Parser parser, java.io.InputStream in)
Constructor.FileBasedDatabaseConnection(java.util.List<? extends ObjectFilter> filters, Parser parser, java.lang.String infile)
Constructor.FileBasedDatabaseConnection(java.util.List<? extends ObjectFilter> filters, Parser parser, java.net.URI infile)
Constructor.
-
Method Summary
-
Methods inherited from class elki.datasource.InputStreamDatabaseConnection
close, getLogger, loadData
-
Methods inherited from class elki.datasource.AbstractDatabaseConnection
invokeBundleFilters, invokeStreamFilters
-
-
-
-
Constructor Detail
-
FileBasedDatabaseConnection
public FileBasedDatabaseConnection(java.util.List<? extends ObjectFilter> filters, Parser parser, java.net.URI infile)
Constructor.- Parameters:
filters
- Filters, can be nullparser
- the parser to provide a databaseinfile
- File to load the data from
-
FileBasedDatabaseConnection
public FileBasedDatabaseConnection(java.util.List<? extends ObjectFilter> filters, Parser parser, java.lang.String infile)
Constructor.- Parameters:
filters
- Filters, can be nullparser
- the parser to provide a databaseinfile
- File to load the data from
-
FileBasedDatabaseConnection
public FileBasedDatabaseConnection(java.util.List<? extends ObjectFilter> filters, Parser parser, java.io.InputStream in)
Constructor.- Parameters:
filters
- Filters, can be nullparser
- the parser to provide a databasein
- Input stream
-
-