edu.udo.cs.miningmart.operator
Class AttributeDerivation
java.lang.Object
edu.udo.cs.miningmart.operator.ExecutableOperator
edu.udo.cs.miningmart.operator.ConceptOperator
edu.udo.cs.miningmart.operator.SingleCSOperator
edu.udo.cs.miningmart.operator.AttributeDerivation
public class AttributeDerivation
- extends SingleCSOperator
An operator that uses a Java method programmed by the user to
create values of the OutputAttribute.
- Version:
- $Id: AttributeDerivation.java,v 1.5 2006/09/27 14:59:56 euler Exp $
- Author:
- Timm Euler
|
Method Summary |
java.lang.String |
generateSQLDefinition(java.lang.String selectPart)
This method must return the SQL definition of the newly created ColumnSet. |
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 java.lang.String |
handleExtraOutputFeature(Feature outF,
Columnset csForOutputConcept)
Overwrites the super class method so that the newly constructed Feature
can be handled. |
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. |
| Methods inherited from class edu.udo.cs.miningmart.operator.ConceptOperator |
compileStatement, createMetadata, createMetadataForOneBA, createSingleColumnSet, createStatement, generateColumns, getInputConcept, getNewCSName, getOutputConcept, getStringForSelection, setNewCSMultiStepBranch |
| Methods inherited from class edu.udo.cs.miningmart.operator.ExecutableOperator |
autoPrint, checkConditions, doPrint, doPrint, execute, executeBusinessSingleValueSqlRead, executeBusinessSingleValueSqlReadL, executeBusinessSqlRead, executeBusinessSqlWrite, executeM4SingleValueSqlRead, executeM4SingleValueSqlReadL, executeM4SqlRead, executeM4SqlWrite, getArtificalColumnName, getBusinessDbms, getHighestLoopNr, getM4Db, getM4Dbms, getM4ObjectFromCache, getName, getNextM4SequenceValue, getNumberOfLoops, getOperator, getOpParamsIterator, getParameter, getParameter, getParameterObjectsOfAllLoops, getSingleParameter, getSingleParameter, getStep, giveWarningForChangedInputData, handleAssertions, isDeselectedParameter, isLoopable, isManual, isStepable, load, print, putM4ObjectToCache, showCreateStatement, storedProceduresAvailable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAM_CLASSNAME
public static final java.lang.String PARAM_CLASSNAME
- See Also:
- Constant Field Values
PARAM_OUTPUT_ATTR
public static final java.lang.String PARAM_OUTPUT_ATTR
- See Also:
- Constant Field Values
PARAM_TARGET_ATTR
public static final java.lang.String PARAM_TARGET_ATTR
- See Also:
- Constant Field Values
externalMethodName
public static final java.lang.String externalMethodName
- See Also:
- Constant Field Values
externalMethodParameters
public static final java.lang.Class[] externalMethodParameters
AttributeDerivation
public AttributeDerivation()
getTypeOfNewColumnSet
public java.lang.String getTypeOfNewColumnSet()
- Description copied from class:
SingleCSOperator
- This method must return the entry String for the M4 table "Columnset_t",
indicating whether the new Columnset is a view or a table.
- Specified by:
getTypeOfNewColumnSet in class SingleCSOperator
- Returns:
- The type of the new Columnset, either "V" or "T".
- See Also:
SingleCSOperator.getTypeOfNewColumnSet()
generateSQLDefinition
public java.lang.String generateSQLDefinition(java.lang.String selectPart)
throws M4CompilerError
- Description copied from class:
SingleCSOperator
- This method must return the SQL definition of the newly created ColumnSet.
- Specified by:
generateSQLDefinition in class SingleCSOperator
- Parameters:
selectPart - The SQL string between "SELECT" and "FROM" for the
SQL definition to be returned.
- Returns:
- The SQL definition for the new ColumnSet.
- Throws:
M4CompilerError- See Also:
SingleCSOperator.generateSQLDefinition(String)
mustCopyFeature
protected boolean mustCopyFeature(java.lang.String nameOfFeature)
throws M4CompilerError
- Description copied from class:
ConceptOperator
- This method is for operators that do not copy all Features of the input concept
to the output concept.
- Specified by:
mustCopyFeature in class ConceptOperator
- Parameters:
nameOfFeature - Name of the feature in question.
- Returns:
- TRUE if this feature should be copied to the output concept,
FALSE if not.
- Throws:
M4CompilerError- See Also:
ConceptOperator.mustCopyFeature(String)
handleExtraOutputFeature
protected java.lang.String handleExtraOutputFeature(Feature outF,
Columnset csForOutputConcept)
throws M4CompilerError
- Overwrites the super class method so that the newly constructed Feature
can be handled.
- Overrides:
handleExtraOutputFeature in class SingleCSOperator
- Parameters:
outF - Feature to be dealt withcsForOutputConcept - Columnset that was created for the output concept
- Returns:
- a String with a column definition
- Throws:
M4CompilerError
Copyright © 2001-2005