|
||||||||||
| 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.CreatePrimaryKey
This operator is able to convert a view with no key and maybe multiple occurences of tuples into a view with a single primary key attribute. Elimination of multiple tuple occurences can be selected as a parameter.
| Field Summary |
| Fields inherited from class edu.udo.cs.miningmart.operator.ExecutableOperator |
generatedSQLDefinitions |
| Constructor Summary | |
CreatePrimaryKey()
|
|
| Method Summary | |
protected java.lang.String |
generateColumns(Columnset csForOutputConcept)
The super method is enhanced by creating a new Column for the key. |
java.lang.String |
generateSQLDefinition(java.lang.String selectPart)
This method must return the SQL definition of the newly created ColumnSet. |
boolean |
getAllowDuplicates()
Getter for the parameter "AllowDuplicates" |
BaseAttribute |
getPrimaryKey()
Getter for the parameter "PrimaryKey" |
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)
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.SingleCSOperator |
generateColumnSetsForOp, generateSQLDefinition, getNewCSName, getTypeOfNewColumnSet |
| Methods inherited from class edu.udo.cs.miningmart.operator.ConceptOperator |
compileStatement, createMetadata, createMetadataForOneBA, createSingleColumnSet, createStatement, estimateStatistics, 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 CreatePrimaryKey()
| Method Detail |
public java.lang.String getTypeOfNewColumnSet()
SingleCSOperator
getTypeOfNewColumnSet in class SingleCSOperatorSingleCSOperator.getTypeOfNewColumnSet()
protected java.lang.String generateColumns(Columnset csForOutputConcept)
throws M4CompilerError
generateColumns in class ConceptOperatorcsForOutputConcept - The ColumnSet for which Columns are to be produced.
M4CompilerErrorminingmart.operator.ConceptOperator#generateColumns(Columnset)
public java.lang.String generateSQLDefinition(java.lang.String selectPart)
throws M4CompilerError
SingleCSOperator
generateSQLDefinition in class SingleCSOperatorselectPart - The SQL string between "SELECT" and "FROM" for the
SQL definition to be returned.
M4CompilerErrorSingleCSOperator.generateSQLDefinition(String)
protected boolean mustCopyFeature(java.lang.String nameOfFeature)
throws M4CompilerError
ConceptOperator
mustCopyFeature in class ConceptOperatornameOfFeature - Name of the feature in question.
M4CompilerErrorConceptOperator.mustCopyFeature(String)
public boolean getAllowDuplicates()
throws M4CompilerError
boolean, true means that duplicates are allowed,
the default is false.
M4CompilerError
public BaseAttribute getPrimaryKey()
throws M4CompilerError
BaseAttribute
M4CompilerError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||