public class ArrayAdapterDatabaseConnection extends AbstractDatabaseConnection
double[rows][cols]
) into an ELKI
database.
For efficiency, the data is not copied. If you modify the array
afterwards, you can break indexes and algorithm results. It is your
responsbility to not do this!
Note: this class is not parameterizable, but can only be used from Java.AbstractDatabaseConnection.Parameterizer
Modifier and Type | Field and Description |
---|---|
(package private) double[][] |
data
The actual data.
|
(package private) java.lang.String[] |
labels
Object labels.
|
private static Logging |
LOG
Class logger.
|
(package private) java.lang.Integer |
startid
Starting ID for fixed object ids.
|
filters, LABEL_CONCATENATION
Constructor and Description |
---|
ArrayAdapterDatabaseConnection(double[][] data)
Constructor.
|
ArrayAdapterDatabaseConnection(double[][] data,
java.util.List<ObjectFilter> filters)
Constructor.
|
ArrayAdapterDatabaseConnection(double[][] data,
java.lang.String[] labels)
Constructor.
|
ArrayAdapterDatabaseConnection(double[][] data,
java.lang.String[] labels,
java.lang.Integer startid)
Constructor.
|
ArrayAdapterDatabaseConnection(double[][] data,
java.lang.String[] labels,
java.lang.Integer startid,
java.util.List<ObjectFilter> filters)
Constructor.
|
ArrayAdapterDatabaseConnection(double[][] data,
java.lang.String[] labels,
java.util.List<ObjectFilter> filters)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the logger for this database connection.
|
MultipleObjectsBundle |
loadData()
Returns the initial data for a database.
|
invokeBundleFilters, invokeStreamFilters
private static final Logging LOG
double[][] data
java.lang.String[] labels
java.lang.Integer startid
public ArrayAdapterDatabaseConnection(double[][] data)
data
- Existing data matrixpublic ArrayAdapterDatabaseConnection(double[][] data, java.util.List<ObjectFilter> filters)
data
- Existing data matrixfilters
- Filters to apply, can be nullpublic ArrayAdapterDatabaseConnection(double[][] data, java.lang.String[] labels)
data
- Existing data matrixlabels
- Object labelspublic ArrayAdapterDatabaseConnection(double[][] data, java.lang.String[] labels, java.util.List<ObjectFilter> filters)
data
- Existing data matrixlabels
- Object labelsfilters
- Filters to apply, can be nullpublic ArrayAdapterDatabaseConnection(double[][] data, java.lang.String[] labels, java.lang.Integer startid)
data
- Existing data matrixlabels
- Object labelsstartid
- Starting object IDpublic ArrayAdapterDatabaseConnection(double[][] data, java.lang.String[] labels, java.lang.Integer startid, java.util.List<ObjectFilter> filters)
data
- Existing data matrixlabels
- Object labelsstartid
- Starting object IDfilters
- Filters to apply, can be nullpublic MultipleObjectsBundle loadData()
DatabaseConnection
protected Logging getLogger()
AbstractDatabaseConnection
getLogger
in class AbstractDatabaseConnection
Copyright © 2019 ELKI Development Team. License information.