|
|
|||||||||||||||||||||
| 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.database.connection.AbstractDatabaseConnection<O>
de.lmu.ifi.dbs.elki.database.connection.InputStreamDatabaseConnection<O>
O - the type of DatabaseObject to be provided by the implementing
class as element of the supplied database@Title(value="Input-Stream based database connection") @Description(value="Parse an input stream such as STDIN into a database.") public class InputStreamDatabaseConnection<O extends DatabaseObject>
Provides a database connection expecting input from an input stream such as stdin.
| Field Summary | |
|---|---|
(package private) InputStream |
in
The input stream to parse from. |
(package private) Parser<O> |
parser
Holds the instance of the parser specified by PARSER_PARAM. |
static OptionID |
PARSER_ID
OptionID for PARSER_PARAM |
private ObjectParameter<Parser<O>> |
PARSER_PARAM
Parameter to specify the parser to provide a database, must extend Parser. |
static OptionID |
SEED_ID
OptionID for SEED_PARAM. |
private LongParameter |
SEED_PARAM
Parameter to specify a seed for randomly shuffling the rows of the database. |
| Fields inherited from class de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection |
|---|
CLASS_LABEL_CLASS_ID, CLASS_LABEL_INDEX_ID, classLabelIndex, database, DATABASE_ID, EXTERNAL_ID_INDEX_ID, LABEL_CONCATENATION |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
InputStreamDatabaseConnection(Parameterization config)
Constructor, adhering to Parameterizable |
|
| Method Summary | |
|---|---|
Database<O> |
getDatabase(Normalization<O> normalization)
Returns a Database according to parameter settings. |
| Methods inherited from class de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection |
|---|
normalizeAndTransformLabels |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final OptionID PARSER_ID
PARSER_PARAM
public static final OptionID SEED_ID
SEED_PARAM.
private final LongParameter SEED_PARAM
Key: -dbc.seed
private final ObjectParameter<Parser<O extends DatabaseObject>> PARSER_PARAM
Parser.
Default value: DoubleVectorLabelParser
Key: -dbc.parser
Parser<O extends DatabaseObject> parser
PARSER_PARAM.
InputStream in
| Constructor Detail |
|---|
public InputStreamDatabaseConnection(Parameterization config)
Parameterizable
config - Parameterization| Method Detail |
|---|
public Database<O> getDatabase(Normalization<O> normalization)
DatabaseConnection
getDatabase in interface DatabaseConnection<O extends DatabaseObject>normalization - Normalization to perform a normalization if this
action is supported. May remain null.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||