edu.udo.cs.miningmart.operator
Class FeatureConstructionWithTFIDF

java.lang.Object
  extended byedu.udo.cs.miningmart.operator.ExecutableOperator
      extended byedu.udo.cs.miningmart.operator.ConceptOperator
          extended byedu.udo.cs.miningmart.operator.SingleCSOperator
              extended byedu.udo.cs.miningmart.operator.FeatureConstructionWithTFIDF

public class FeatureConstructionWithTFIDF
extends SingleCSOperator

Version:
$Id: FeatureConstructionWithTFIDF.java,v 1.6 2006/04/11 14:10:11 euler Exp $
Author:
Hanna Koepcke

Field Summary
 
Fields inherited from class edu.udo.cs.miningmart.operator.ExecutableOperator
generatedSQLDefinitions
 
Constructor Summary
FeatureConstructionWithTFIDF()
           
 
Method Summary
protected  Column createM4Column(BaseAttribute outputBA, Columnset newCS, java.lang.String newColumnName)
          Method to create new M4 column objects.
protected  java.lang.String generateColumns(Columnset csForOutputConcept)
          This method overrides the method in ConceptOperator.
 java.lang.String generateSQLDefinition(java.lang.String selectPart)
          This method must return the SQL definition of the newly created ColumnSet.
 BaseAttribute getTheKey()
          Parameter getter.
protected  Feature[] getTheSelectedAttributes()
          Getter method for the parameter "TheSelectedAttributes".
 BaseAttribute getTheTimeStamp()
          Parameter getter.
 java.lang.String getTypeOfNewColumnSet()
          This method must return the entry String for the M4 table "Columnset_t", indicating whether the new Columnset is a view or a table.
protected  boolean mustCopyFeature(java.lang.String nameOfFeature)
          This method is for operators that do not copy all Features of the input concept to the output concept.
 
Methods inherited from class edu.udo.cs.miningmart.operator.SingleCSOperator
generateColumnSetsForOp, generateSQLDefinition, getNewCSName, getTypeOfNewColumnSet
 
Methods inherited from class edu.udo.cs.miningmart.operator.ConceptOperator
compileStatement, createMetadata, createMetadataForOneBA, createSingleColumnSet, createStatement, estimateStatistics, getInputConcept, getNewCSName, getOutputConcept, getStringForSelection, setNewCSMultiStepBranch
 
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

FeatureConstructionWithTFIDF

public FeatureConstructionWithTFIDF()
Method Detail

getTypeOfNewColumnSet

public java.lang.String getTypeOfNewColumnSet()
Description copied from class: SingleCSOperator
This method must return the entry String for the M4 table "Columnset_t", indicating whether the new Columnset is a view or a table.

Specified by:
getTypeOfNewColumnSet in class SingleCSOperator
Returns:
The type of the new Columnset, either "V" or "T".
See Also:
miningmart.compiler.operator.SingleCSOperator#getTypeOfNewColumnSet()

generateSQLDefinition

public java.lang.String generateSQLDefinition(java.lang.String selectPart)
                                       throws M4CompilerError
Description copied from class: SingleCSOperator
This method must return the SQL definition of the newly created ColumnSet.

Specified by:
generateSQLDefinition in class SingleCSOperator
Parameters:
selectPart - The SQL string between "SELECT" and "FROM" for the SQL definition to be returned.
Returns:
The SQL definition for the new ColumnSet.
Throws:
M4CompilerError
See Also:
miningmart.compiler.operator.SingleCSOperator#generateSQLDefinition(String)

mustCopyFeature

protected boolean mustCopyFeature(java.lang.String nameOfFeature)
                           throws M4CompilerError
Description copied from class: ConceptOperator
This method is for operators that do not copy all Features of the input concept to the output concept.

Specified by:
mustCopyFeature in class ConceptOperator
Parameters:
nameOfFeature - Name of the feature in question.
Returns:
TRUE if this feature should be copied to the output concept, FALSE if not.
Throws:
M4CompilerError
See Also:
miningmart.compiler.operator.ConceptOperator#mustCopyFeature(String)

generateColumns

protected java.lang.String generateColumns(Columnset csForOutputConcept)
                                    throws M4CompilerError
This method overrides the method in ConceptOperator.

Overrides:
generateColumns in class ConceptOperator
Parameters:
csForOutputConcept - The ColumnSet for which Columns are to be produced.
Returns:
A String for the "SELECT"-part of the view definition for the given ColumnSet.
Throws:
M4CompilerError
See Also:
miningmart.operator.ConceptOperator#generateColumns(Columnset)

createM4Column

protected Column createM4Column(BaseAttribute outputBA,
                                Columnset newCS,
                                java.lang.String newColumnName)
                         throws M4CompilerError,
                                M4Exception
Method to create new M4 column objects.

Parameters:
outputBA - the base attribute of the output concept the new column should belong to
newCS - the new ColumnSet created by the operator
newColumnName - the name of the new column
Returns:
the new Column
Throws:
M4CompilerError
M4Exception

getTheSelectedAttributes

protected Feature[] getTheSelectedAttributes()
                                      throws M4CompilerError
Getter method for the parameter "TheSelectedAttributes". This parameter specifies the set of features for which TFIDF should be computed.

Returns:
an array of Feature objects
Throws:
M4CompilerError

getTheTimeStamp

public BaseAttribute getTheTimeStamp()
                              throws M4CompilerError
Parameter getter.

Throws:
M4CompilerError

getTheKey

public BaseAttribute getTheKey()
                        throws M4CompilerError
Parameter getter.

Throws:
M4CompilerError


Copyright © 2001-2005