|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.Operator
com.rapidminer.operator.io.AbstractWriter<ExampleSet>
com.rapidminer.operator.io.AbstractExampleSetWriter
com.rapidminer.operator.io.DatabaseExampleSetWriter
public class DatabaseExampleSetWriter
This operator writes an ExampleSet into an SQL
database. The user can specify the database connection and a table name. Please note
that the table will be created during writing if it does not exist.
The most convenient way of defining the necessary parameters is the configuration wizard. The most important parameters (database URL and user name) will be automatically determined by this wizard. At the end, you only have to define the table name and then you are ready.
This operator only supports the writing of the complete example set consisting of all regular and special attributes and all examples. If this is not desired perform some preprocessing operators like attribute or example filter before applying this operator.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_DATABASE_SYSTEM
The parameter name for "Indicates the used database system" |
static java.lang.String |
PARAMETER_DATABASE_URL
The parameter name for "The complete URL connection string for the database, e.g. |
static java.lang.String |
PARAMETER_DEFAULT_VARCHAR_LENGTH
The parameter name for "Default length of varchar columns. |
static java.lang.String |
PARAMETER_OVERWRITE_MODE
The parameter name for "Indicates if an existing table should be overwritten. |
static java.lang.String |
PARAMETER_PASSWORD
The parameter name for "Password for the database. |
static java.lang.String |
PARAMETER_SET_DEFAULT_VARCHAR_LENGTH
The parameter name for "Set varchar columns to default length. |
static java.lang.String |
PARAMETER_TABLE_NAME
The parameter name for "Use this table if work_on_database is true or no other query is specified. |
static java.lang.String |
PARAMETER_USERNAME
The parameter name for "Database username. |
| Constructor Summary | |
|---|---|
DatabaseExampleSetWriter(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
protected DatabaseHandler |
getConnectedDatabaseHandler()
|
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
ExampleSet |
write(ExampleSet exampleSet)
Creates (or reads) the ExampleSet that will be returned by AbstractWriter.apply(). |
| Methods inherited from class com.rapidminer.operator.io.AbstractWriter |
|---|
apply, getInputClasses, getOutputClasses |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PARAMETER_DATABASE_SYSTEM
public static final java.lang.String PARAMETER_DATABASE_URL
public static final java.lang.String PARAMETER_USERNAME
public static final java.lang.String PARAMETER_PASSWORD
public static final java.lang.String PARAMETER_TABLE_NAME
public static final java.lang.String PARAMETER_OVERWRITE_MODE
public static final java.lang.String PARAMETER_SET_DEFAULT_VARCHAR_LENGTH
public static final java.lang.String PARAMETER_DEFAULT_VARCHAR_LENGTH
| Constructor Detail |
|---|
public DatabaseExampleSetWriter(OperatorDescription description)
| Method Detail |
|---|
public ExampleSet write(ExampleSet exampleSet)
throws OperatorException
AbstractWriterAbstractWriter.apply().
write in class AbstractWriter<ExampleSet>OperatorException
protected DatabaseHandler getConnectedDatabaseHandler()
throws OperatorException,
java.sql.SQLException
OperatorException
java.sql.SQLExceptionpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||