|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection<O>
public abstract class AbstractDatabaseConnection<O extends DatabaseObject>
Abstract super class for all database connections. AbstractDatabaseConnection already provides the setting of the database according to parameters.
Field Summary | |
---|---|
static String |
CLASS_LABEL_CLASS_D
Description for parameter classLabelClass. |
static String |
CLASS_LABEL_CLASS_P
Option string for parameter classLabelClass. |
static String |
CLASS_LABEL_INDEX_D
Description for parameter classLabelIndex. |
static String |
CLASS_LABEL_INDEX_P
Option string for parameter classLabelIndex. |
private String |
classLabelClass
The class name for a class label. |
protected Integer |
classLabelIndex
The index of the class label, null if no class label is specified. |
(package private) Database<O> |
database
The database. |
static OptionID |
DATABASE_ID
OptionID for DATABASE_PARAM |
private ClassParameter<Database> |
DATABASE_PARAM
Parameter to specify the database to be provided by the parse method. |
static String |
EXTERNAL_ID_INDEX_D
Description for parameter classLabelIndex. |
static String |
EXTERNAL_ID_INDEX_P
Option string for parameter externalIDIndex. |
private Integer |
externalIDIndex
The index of the external id label, null if no external id label is specified. |
(package private) boolean |
forceExternalID
True, if an external label needs to be set. |
static String |
LABEL_CONCATENATION
A sign to separate components of a label. |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
optionHandler |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug |
Fields inherited from interface de.lmu.ifi.dbs.elki.database.connection.DatabaseConnection |
---|
PROPERTY_DATABASE, PROPERTY_PARSER |
Constructor Summary | |
---|---|
protected |
AbstractDatabaseConnection()
AbstractDatabaseConnection already provides the setting of the database according to parameters. |
Method Summary | |
---|---|
List<AttributeSettings> |
getAttributeSettings()
Returns the parameter setting of the attributes. |
protected List<ObjectAndAssociations<O>> |
normalizeAndTransformLabels(List<ObjectAndLabels<O>> objectAndLabelsList,
Normalization<O> normalization)
Normalizes and transforms the specified list of objects and their labels into a list of objects and their associtaions. |
String[] |
setParameters(String[] args)
Sets the attributes of the class accordingly to the given parameters. |
private List<ObjectAndAssociations<O>> |
transformLabels(List<ObjectAndLabels<O>> objectAndLabelsList)
Transforms the specified list of objects and their labels into a list of objects and their associtaions. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, checkGlobalParameterConstraints, deleteOption, description, description, description, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.database.connection.DatabaseConnection |
---|
getDatabase |
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
---|
checkGlobalParameterConstraints, description, getParameters, getPossibleOptions, inlineDescription |
Field Detail |
---|
public static final String LABEL_CONCATENATION
public static final OptionID DATABASE_ID
DATABASE_PARAM
private final ClassParameter<Database> DATABASE_PARAM
Default value: SequentialDatabase
Key: -dbconnection.database
public static final String EXTERNAL_ID_INDEX_P
public static final String EXTERNAL_ID_INDEX_D
public static final String CLASS_LABEL_INDEX_P
public static final String CLASS_LABEL_INDEX_D
public static final String CLASS_LABEL_CLASS_P
public static final String CLASS_LABEL_CLASS_D
private Integer externalIDIndex
protected Integer classLabelIndex
private String classLabelClass
Database<O extends DatabaseObject> database
boolean forceExternalID
Constructor Detail |
---|
protected AbstractDatabaseConnection()
Method Detail |
---|
public String[] setParameters(String[] args) throws ParameterException
Parameterizable
setParameters
in interface Parameterizable
setParameters
in class AbstractParameterizable
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingParameterizable.setParameters(java.lang.String[])
public List<AttributeSettings> getAttributeSettings()
getAttributeSettings
in interface Parameterizable
getAttributeSettings
in class AbstractParameterizable
Parameterizable.getAttributeSettings()
protected List<ObjectAndAssociations<O>> normalizeAndTransformLabels(List<ObjectAndLabels<O>> objectAndLabelsList, Normalization<O> normalization) throws NonNumericFeaturesException
objectAndLabelsList
- the list of object and their labels to be transformednormalization
- the normalization to be applied
NonNumericFeaturesException
- if any exception occurs during normalizationprivate List<ObjectAndAssociations<O>> transformLabels(List<ObjectAndLabels<O>> objectAndLabelsList)
objectAndLabelsList
- the list of object and their labels to be transformed
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |