|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.miningmart.operator.ExecutableOperator
edu.udo.cs.miningmart.operator.ConceptOperator
edu.udo.cs.miningmart.operator.SingleCSOperator
edu.udo.cs.miningmart.operator.TimeOperator
Abstract super class for all time operators creating a new table by calling a stored procedure of the database.
Field Summary |
Fields inherited from class edu.udo.cs.miningmart.operator.ExecutableOperator |
generatedSQLDefinitions |
Constructor Summary | |
TimeOperator()
|
Method Summary | |
protected void |
baseattribHasColumns(BaseAttribute b,
java.lang.String name)
|
protected abstract void |
createJavaColumns(Columnset newColumnSet)
This method needs to create the M4 JAVA objects for the new columns and has to link these objects to the base attributes (and vice versa). |
protected Column |
createM4Column(BaseAttribute outputBA,
Columnset newCS,
Column columnForType)
|
protected Columnset |
createSingleColumnSet(int index)
This method overrides the method in ConceptOperator! |
protected void |
executeDbProcedure(java.lang.String procedureName,
java.lang.String[] parameters)
|
java.lang.String |
generateSQLDefinition(java.lang.String selectPart)
This method must return the SQL definition of the newly created ColumnSet. |
protected abstract java.lang.String |
getColumnSetSuffix()
|
protected static java.lang.String |
getQuotedColNameforInpBA(BaseAttribute ba)
|
protected static java.lang.String |
getQuotedColNameforOutBA(BaseAttribute ba)
|
protected static java.lang.String |
getQuotedColSetNameforCon(Concept c)
|
java.lang.String |
getTypeOfNewColumnSet()
This method must return the entry String for the M4 table "Columnset_t", indicating whether the new Columnset is a view or a table. |
protected static java.lang.String |
getUnquotedIntFromValue(Value v)
|
protected boolean |
mustCopyFeature(java.lang.String nameOfFeature)
This method is for operators that do not copy all Features of the input concept to the output concept. |
protected abstract void |
runStoredProcedure(java.lang.String newColumnSetName)
This method calls the stored procedure in the database. |
protected static java.lang.String |
unquote(java.lang.String s)
|
protected void |
valueIsDouble(Value v,
java.lang.String name)
|
protected void |
valueIsLong(Value v,
java.lang.String name)
|
Methods inherited from class edu.udo.cs.miningmart.operator.SingleCSOperator |
generateColumnSetsForOp, generateSQLDefinition, getNewCSName, getTypeOfNewColumnSet |
Methods inherited from class edu.udo.cs.miningmart.operator.ConceptOperator |
compileStatement, createMetadata, createMetadataForOneBA, createStatement, estimateStatistics, generateColumns, getInputConcept, getNewCSName, getOutputConcept, getStringForSelection, setNewCSMultiStepBranch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeOperator()
Method Detail |
protected abstract java.lang.String getColumnSetSuffix()
protected abstract void runStoredProcedure(java.lang.String newColumnSetName) throws java.sql.SQLException, M4CompilerError, TimeOperatorException
newColumnSetName
- the name of the table to be created
for the results
java.sql.SQLException
M4CompilerError
TimeOperatorException
protected abstract void createJavaColumns(Columnset newColumnSet) throws java.sql.SQLException, M4CompilerError
newColumnSet
- the new column set generated by this operator
java.sql.SQLException
M4CompilerError
public java.lang.String generateSQLDefinition(java.lang.String selectPart) throws M4CompilerError
SingleCSOperator
generateSQLDefinition
in class SingleCSOperator
selectPart
- The SQL string between "SELECT" and "FROM" for the
SQL definition to be returned.
M4CompilerError
public java.lang.String getTypeOfNewColumnSet()
SingleCSOperator
getTypeOfNewColumnSet
in class SingleCSOperator
Columnset
, a table in this case.edu.udo.cs.miningmart.m4.core.operator.ConceptOperator#getTypeOfNewColumnSet
protected boolean mustCopyFeature(java.lang.String nameOfFeature)
ConceptOperator
mustCopyFeature
in class ConceptOperator
nameOfFeature
- Name of the feature in question.
protected Columnset createSingleColumnSet(int index) throws M4CompilerError
createSingleColumnSet
in class ConceptOperator
index
- Can be ignored as this is a SingleCSOperator.
M4CompilerError
protected Column createM4Column(BaseAttribute outputBA, Columnset newCS, Column columnForType) throws M4CompilerError
M4CompilerError
protected void executeDbProcedure(java.lang.String procedureName, java.lang.String[] parameters) throws M4CompilerError
M4CompilerError
protected static java.lang.String getQuotedColNameforInpBA(BaseAttribute ba) throws M4CompilerError
M4CompilerError
protected static java.lang.String getQuotedColNameforOutBA(BaseAttribute ba)
protected static java.lang.String getQuotedColSetNameforCon(Concept c) throws M4CompilerError
M4CompilerError
protected static java.lang.String getUnquotedIntFromValue(Value v)
protected static java.lang.String unquote(java.lang.String s)
protected void valueIsLong(Value v, java.lang.String name) throws M4CompilerError
M4CompilerError
protected void valueIsDouble(Value v, java.lang.String name) throws M4CompilerError
M4CompilerError
protected void baseattribHasColumns(BaseAttribute b, java.lang.String name) throws M4CompilerError
M4CompilerError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |