edu.udo.cs.miningmart.operator
Class Union
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.Union
public class Union
- extends SingleCSOperator
This operator provides a UNION of Concepts as part of SQL at the
relational level. So far no mapping is supported within the operator.
- Version:
- $Id: Union.java,v 1.6 2006/09/27 14:59:56 euler Exp $
- Author:
- Martin Scholz
|
Constructor Summary |
Union()
|
|
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 |
getDataMode()
Getter for the parameter "DataMode" |
Concept[] |
getTheConcepts()
Getter for the parameter "TheConcepts" |
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 boolean |
mustCopyFeature(java.lang.String nameOfFeature)
All output features should have a column of the same type
as their corresponding feature in the input concept
(unless the input concept's feature was deselected). |
| 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 |
Union
public Union()
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
- All output features should have a column of the same type
as their corresponding feature in the input concept
(unless the input concept's feature was deselected).
- 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)
getTheConcepts
public Concept[] getTheConcepts()
throws M4CompilerError
- Getter for the parameter "TheConcepts"
- Returns:
- an array of
Concept objects
- Throws:
M4CompilerError
getDataMode
public java.lang.String getDataMode()
throws M4CompilerError
- Getter for the parameter "DataMode"
- Returns:
- one of the two
String objects
DATAMODE_SET or DATAMODE_BAG
indicating the mode.
- Throws:
M4CompilerError
Copyright © 2001-2005