|
||||||||||
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.MultipleCSOperator
edu.udo.cs.miningmart.operator.Unsegment
This class realizes an operator for grouping segments of a Concept
together.Applications of the operator SegmetationStratified
usually
result in several Columnset
s for a single Concept
.
The entry in the field CS_MSBRANCH of table COLUMNSET_T specifies
how each of the Columnset
s was generated.
If a set of Columnset
s was generated by a segmentation based on a
BaseAttribute
b1, then the Unsegment
operator
performs a union operation for all Columnsets
with the same
segmentation history stored in CS_MSBRANCH, ignoring the information given
for b1. Therefore b1 needs to be specified as a Parameter
of the Step
. Other kinds of Segmentation
are not based on
a BaseAttribute
. These may be reversed by using predefined
pseudo-attributes, like (Random)
and (KMeans)
, instead.
Field Summary |
Fields inherited from class edu.udo.cs.miningmart.operator.ExecutableOperator |
generatedSQLDefinitions |
Constructor Summary | |
Unsegment()
|
Method Summary | |
void |
execute(boolean lazy)
This method is overriden in order to switch off multiple runs of the operator due to multistep support in the compiler's control structure. |
protected java.lang.String |
generateColumns(Columnset csForOutputConcept)
Needs to be overridden !! |
java.lang.String |
generateSQLDefinition(java.lang.String selectPart,
int index)
Generates an SQL-definition unifying all Columnset s which
belong to the same segment after unsegmenting. |
java.lang.String |
getNewCSName(int index)
Overrides the corresponding method in ConceptOperator
in order to beautify the output name (omitting a common "_0"). |
java.lang.String |
getTypeOfNewColumnSet(int index)
The operator creates a view. |
BaseAttribute |
getUnsegmentAttribute()
Gets the unsegmentAttribute. |
protected boolean |
mustCopyFeature(java.lang.String nameOfFeature)
All attributes of a view realizing a Feature are copied,
except for the one specified for Unsegmentation. |
int |
numberOfColumnSets()
Must return the number of ColumnSets this operator will produce. |
protected void |
setNewCSMultiStepBranch(Columnset newCS,
int index)
Overrides the corresponding method of class ConceptOperator .
|
Methods inherited from class edu.udo.cs.miningmart.operator.MultipleCSOperator |
generateColumnSetsForOp |
Methods inherited from class edu.udo.cs.miningmart.operator.ConceptOperator |
compileStatement, createMetadata, createMetadataForOneBA, createSingleColumnSet, createStatement, estimateStatistics, getInputConcept, getOutputConcept, getStringForSelection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Unsegment()
Method Detail |
public int numberOfColumnSets() throws M4CompilerError
MultipleCSOperator
numberOfColumnSets
in class MultipleCSOperator
M4CompilerError
edu.udo.cs.miningmart.m4.core.operator.MultipleCSOperator#numberOfColumnSets()
public java.lang.String getTypeOfNewColumnSet(int index)
getTypeOfNewColumnSet
in class ConceptOperator
index
- An index for MulipleCSOperators.
String
"V"edu.udo.cs.miningmart.m4.core.operator.ConceptOperator#getTypeOfNewColumnSet(int)
protected boolean mustCopyFeature(java.lang.String nameOfFeature) throws M4CompilerError
Feature
are copied,
except for the one specified for Unsegmentation.
mustCopyFeature
in class ConceptOperator
nameOfFeature
- Name of the feature in question.
M4CompilerError
edu.udo.cs.miningmart.m4.core.operator.ConceptOperator#mustCopyFeature(String)
public java.lang.String generateSQLDefinition(java.lang.String selectPart, int index) throws M4CompilerError
Columnset
s which
belong to the same segment after unsegmenting. If the statement becomes
too long, then intermediate views are created in the database and used
by views of higher level.
generateSQLDefinition
in class ConceptOperator
selectPart
- The String for the SELECT-part of the SQL definition to
be created.index
- An index for MultipleCSOperators.
M4CompilerError
edu.udo.cs.miningmart.m4.core.operator.ConceptOperator#generateSQLDefinition(String, int)
public BaseAttribute getUnsegmentAttribute() throws M4CompilerError
M4CompilerError
protected java.lang.String generateColumns(Columnset csForOutputConcept) throws M4CompilerError
generateColumns
in class ConceptOperator
csForOutputConcept
- The ColumnSet for which Columns are to be produced.
M4CompilerError
miningmart.compiler.operator.ConceptOperator#generateColumns(Columnset)
public void execute(boolean lazy) throws UserError, M4CompilerWarning, M4CompilerError, M4Exception, java.sql.SQLException
execute
in class ExecutableOperator
lazy
- If TRUE, run the operator in lazy mode
UserError
M4CompilerError
java.sql.SQLException
M4Exception
M4CompilerWarning
edu.udo.cs.miningmart.m4.core.operator.Operator#execute(boolean)
protected void setNewCSMultiStepBranch(Columnset newCS, int index) throws M4CompilerError
ConceptOperator
.
This is done in order to replace the information on multi step branching,
underlying the generation of each Columnset
.
setNewCSMultiStepBranch
in class ConceptOperator
newCS
- the Columnset that is created by this operatorindex
- An index for MulipleCSOperators.
M4CompilerError
edu.udo.cs.miningmart.m4.core.operator.ConceptOperator#setNewCSMultiStepBranch(Columnset, int)
public java.lang.String getNewCSName(int index)
ConceptOperator
in order to beautify the output name (omitting a common "_0").
getNewCSName
in class ConceptOperator
edu.udo.cs.miningmart.m4.core.operator.ConceptOperator#getNewCSName(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |