edu.udo.cs.miningmart.operator
Class TimeIntervalManualDiscretization

java.lang.Object
  extended by edu.udo.cs.miningmart.operator.ExecutableOperator
      extended by edu.udo.cs.miningmart.operator.FeatureConstruction
          extended by edu.udo.cs.miningmart.operator.Discretization
              extended by edu.udo.cs.miningmart.operator.ManualDiscretization
                  extended by edu.udo.cs.miningmart.operator.TimeIntervalManualDiscretization

public class TimeIntervalManualDiscretization
extends ManualDiscretization

The class TimeIntervalManualDiscretization implements method generateSQL creating virtual column definition for discretization of numerical intervals according to given discretization specification. NOTE: Physical database table is created, containing the specification. It does not correspond to any M4 ColumnSet object.

Version:
$Id: TimeIntervalManualDiscretization.java,v 1.8 2006/10/02 08:58:56 euler Exp $
Author:
Cezary Chudzian

Field Summary
 
Fields inherited from class edu.udo.cs.miningmart.operator.ManualDiscretization
INTERVAL_EXCLUSION, INTERVAL_INCLUSION
 
Constructor Summary
TimeIntervalManualDiscretization()
           
 
Method Summary
 java.lang.String generateSQL(Column theTargetAttributeColumn)
          Generates a sql-function to describe a new column.
 Value getTimeFormat()
           
 
Methods inherited from class edu.udo.cs.miningmart.operator.ManualDiscretization
getCurrentLoopNumber, getDefaultValue, getDiscTableName, getEndIncExc, getGreater, getIntervalEnd, getIntervalStart, getMapTo, getSmaller, getStartIncExc, load
 
Methods inherited from class edu.udo.cs.miningmart.operator.FeatureConstruction
compileStatement, createStatement, execute, generateColumnForOp, getTheInputConcept, getTheOutputAttribute, getTheOutputAttribute, getTheTargetAttribute, getTheTargetAttribute, writeResults
 
Methods inherited from class edu.udo.cs.miningmart.operator.ExecutableOperator
autoPrint, checkConditions, doPrint, doPrint, 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, print, putM4ObjectToCache, showCreateStatement, storedProceduresAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeIntervalManualDiscretization

public TimeIntervalManualDiscretization()
Method Detail

getTimeFormat

public Value getTimeFormat()
                    throws M4CompilerError
Throws:
M4CompilerError

generateSQL

public java.lang.String generateSQL(Column theTargetAttributeColumn)
                             throws M4CompilerError
Generates a sql-function to describe a new column. This method generates a sql-function to describe a new column. Also creates the discretization table.

Specified by:
generateSQL in class ManualDiscretization
Parameters:
theTargetAttributeColumn - The Column to which this FeatureConstruction Operator is applied. Some subclasses may ignore this parameter.
Returns:
the SQL-function call
Throws:
M4CompilerError - A simple exception object with an error message.


Copyright © 2001-2005