edu.udo.cs.miningmart.operator
Class SegmentationByPartitioning
java.lang.Object
edu.udo.cs.miningmart.operator.ExecutableOperator
edu.udo.cs.miningmart.operator.ConceptOperator
edu.udo.cs.miningmart.operator.MultipleCSOperator
edu.udo.cs.miningmart.operator.Segmentation
edu.udo.cs.miningmart.operator.SegmentationByPartitioning
public final class SegmentationByPartitioning
- extends Segmentation
This operator segments an input concept randomly.
- Version:
- $Id: SegmentationByPartitioning.java,v 1.6 2006/09/27 14:59:56 euler Exp $
- Author:
- Martin Scholz
- See Also:
edu.udo.cs.miningmart.m4.core.operator.Segmentation
| 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 |
SegmentationByPartitioning
public SegmentationByPartitioning()
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
- Parameters:
selectPart - The String for the SELECT-part of the SQL definition to
be created.index - An index for MultipleCSOperators.
- Returns:
- The SQL definition for the new ColumnSet.
- 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()
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 columnsetcs - the current output columnsetindex - 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