|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rapidminer.tools.AbstractObservable<Operator>
com.rapidminer.operator.Operator
com.rapidminer.operator.SQLExecution
public class SQLExecution
This operator performs an arbitrary SQL statement on an SQL database. The SQL query can be passed to RapidMiner via a parameter or, in case of long SQL statements, in a separate file. Please note that column names are often case sensitive. Databases may behave differently here.
Please note that this operator cannot be used to load data from databases
but mereley to execute SQL statements like CREATE or ADD etc. In oder to load
data from a database, the operators DatabaseDataReader
or
CachedDatabaseExampleSource
can be used.
Field Summary | |
---|---|
static java.lang.String |
PARAMETER_QUERY
The parameter name for "SQL query. |
static java.lang.String |
PARAMETER_QUERY_FILE
The parameter name for "File containing the query. |
Constructor Summary | |
---|---|
SQLExecution(OperatorDescription description)
|
Method Summary | |
---|---|
void |
doWork()
Performs the actual work of the operator and must be implemented by subclasses. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
Methods inherited from class com.rapidminer.tools.AbstractObservable |
---|
addObserver, addObserverAsFirst, fireUpdate, removeObserver |
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_QUERY
public static final java.lang.String PARAMETER_QUERY_FILE
Constructor Detail |
---|
public SQLExecution(OperatorDescription description)
Method Detail |
---|
public void doWork() throws OperatorException
Operator
apply()
.
doWork
in class Operator
OperatorException
public java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes
in interface ParameterHandler
getParameterTypes
in class Operator
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |