edu.udo.cs.miningmart.operator
Class SegmentationStratified

java.lang.Object
  extended byedu.udo.cs.miningmart.operator.ExecutableOperator
      extended byedu.udo.cs.miningmart.operator.ConceptOperator
          extended byedu.udo.cs.miningmart.operator.MultipleCSOperator
              extended byedu.udo.cs.miningmart.operator.Segmentation
                  extended byedu.udo.cs.miningmart.operator.SegmentationStratified

public final class SegmentationStratified
extends Segmentation

This operator segments an input concept according to the different values of a specified attribute, such that each segment contains the rows where this attribute has the same value.

Version:
$Id: SegmentationStratified.java,v 1.6 2006/04/11 14:10:11 euler Exp $
Author:
Timm Euler

Field Summary
 
Fields inherited from class edu.udo.cs.miningmart.operator.ExecutableOperator
generatedSQLDefinitions
 
Constructor Summary
SegmentationStratified()
           
 
Method Summary
 java.lang.String generateConditionForOp(int columnSetIndex)
          Abstract method to be implemented by all Segmentation operators.
 BaseAttribute getTheAttribute()
          Getter method for the parameter "TheAttribute".
 int numberOfSegments()
          Abstract method to be implemented by all Segmentation operators.
 void setCSSegmentInfo(java.lang.String inputMultiStepBranch, Columnset cs, int index)
          The value embedded in the SQL-statement (WHERE attribute = value) is found by parsing the statement found in the Columnset.
 
Methods inherited from class edu.udo.cs.miningmart.operator.Segmentation
generateSQLDefinition, getTypeOfNewColumnSet, mustCopyFeature, numberOfColumnSets, setNewCSMultiStepBranch
 
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, generateColumns, getInputConcept, getNewCSName, getOutputConcept, getStringForSelection
 
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, getSingleParameter, getSingleParameter, getStep, 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
 

Constructor Detail

SegmentationStratified

public SegmentationStratified()
Method Detail

generateConditionForOp

public java.lang.String generateConditionForOp(int columnSetIndex)
                                        throws M4CompilerError
Description copied from class: Segmentation
Abstract method to be implemented by all Segmentation operators. The SQL condition for segmenting the input columnset is generated by this method.

Specified by:
generateConditionForOp in class Segmentation
Parameters:
columnSetIndex - The number of the columnset for which the condition is to be generated
Returns:
the SQL condition as a String
Throws:
M4CompilerError
See Also:
edu.udo.cs.miningmart.m4.core.operator.Segmentation#generateConditionForOp

getTheAttribute

public BaseAttribute getTheAttribute()
                              throws M4CompilerError
Getter method for the parameter "TheAttribute".

Returns:
parameter "TheAttribute" as a BaseAttribute
Throws:
M4CompilerError

numberOfSegments

public int numberOfSegments()
                     throws M4CompilerError
Description copied from class: Segmentation
Abstract method to be implemented by all Segmentation operators. The number of segments that will be created is returned.

Specified by:
numberOfSegments in class Segmentation
Returns:
the number of segments that will be created
Throws:
M4CompilerError
See Also:
edu.udo.cs.miningmart.m4.core.operator.Segmentation#numberOfSegments

setCSSegmentInfo

public void setCSSegmentInfo(java.lang.String inputMultiStepBranch,
                             Columnset cs,
                             int index)
                      throws M4CompilerError
The value embedded in the SQL-statement (WHERE attribute = value) is found by parsing the statement found in the Columnset. Together with the BaseAttribute it is added to the field CS_MSBRANCH in the table COLUMNSET_T.

Specified by:
setCSSegmentInfo in class Segmentation
Parameters:
inputMultiStepBranch - the multistep information of the input columnset
cs - the current output columnset
index - the index of the output columnset
Throws:
M4CompilerError
See Also:
edu.udo.cs.miningmart.m4.core.operator.Segmentation#setCSSegmentInfo(String, Columnset, int)


Copyright © 2001-2005