edu.udo.cs.miningmart.operator
Class SegmentationByPartitioning

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.SegmentationByPartitioning

public final class SegmentationByPartitioning
extends Segmentation

This operator segments an input concept randomly.

Version:
$Id: SegmentationByPartitioning.java,v 1.4 2006/04/11 14:10:11 euler Exp $
Author:
Martin Scholz
See Also:
edu.udo.cs.miningmart.m4.core.operator.Segmentation

Field Summary
 
Fields inherited from class edu.udo.cs.miningmart.operator.ExecutableOperator
generatedSQLDefinitions
 
Constructor Summary
SegmentationByPartitioning()
           
 
Method Summary
 java.lang.String generateConditionForOp(int columnSetIndex)
          Only for the java compiler.
 java.lang.String generateSQLDefinition(java.lang.String selectPart, int index)
          Overrides the method from Segmentation.java because a nested view definition is needed.
 Value getHowManyPartitions()
          Getter method for parameter "HowManyPartitions".
 java.lang.String getSourceAttributeDefinitions()
           
 java.lang.String getSourceAttributes()
           
 java.lang.String getTypeOfNewColumnSet(int index)
          This method must return the entry String for the M4 table "Columnset_t", indicating whether the new Columnset is a view or a table.
 int numberOfSegments()
          Abstract method to be implemented by all Segmentation operators.
 void setCSSegmentInfo(java.lang.String inputMultiStepBranch, Columnset cs, int index)
          Abstract method to be implemented by all Segmentation operators.
 
Methods inherited from class edu.udo.cs.miningmart.operator.Segmentation
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

SegmentationByPartitioning

public SegmentationByPartitioning()
Method Detail

generateSQLDefinition

public java.lang.String generateSQLDefinition(java.lang.String selectPart,
                                              int index)
                                       throws M4CompilerError
Overrides the method from Segmentation.java because a nested view definition is needed.

Overrides:
generateSQLDefinition in class Segmentation
Throws:
M4CompilerError
See Also:
edu.udo.cs.miningmart.m4.core.operator.ConceptOperator#generateSQLDefinition(String, int)

getSourceAttributeDefinitions

public java.lang.String getSourceAttributeDefinitions()
                                               throws M4CompilerError
Throws:
M4CompilerError
See Also:
edu.udo.cs.miningmart.m4.core.utils.RandomPartition#getSourceAttributeDefinitions()

getSourceAttributes

public java.lang.String getSourceAttributes()
                                     throws M4CompilerError
Throws:
M4CompilerError
See Also:
edu.udo.cs.miningmart.m4.core.utils.RandomPartition#getSourceAttributes()

getTypeOfNewColumnSet

public java.lang.String getTypeOfNewColumnSet(int index)
Description copied from class: ConceptOperator
This method must return the entry String for the M4 table "Columnset_t", indicating whether the new Columnset is a view or a table. Use the constants in the class Columnset, either CS_TYPE_TABLE or CS_TYPE_VIEW.

Overrides:
getTypeOfNewColumnSet in class Segmentation
See Also:
edu.udo.cs.miningmart.m4.core.operator.ConceptOperator#getTypeOfNewColumnSet(int)

generateConditionForOp

public java.lang.String generateConditionForOp(int columnSetIndex)
                                        throws M4CompilerError
Only for the java compiler.

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(int)

getHowManyPartitions

public Value getHowManyPartitions()
                           throws M4CompilerError
Getter method for parameter "HowManyPartitions".

Returns:
the parameter "HowManyPartitions" as a Value
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
Description copied from class: Segmentation
Abstract method to be implemented by all Segmentation operators. The multistep information about how the segmentation was done is set into the newly created columnset.

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