com.rapidminer.operator.io
Class KDBExampleSource

java.lang.Object
  extended by com.rapidminer.operator.Operator
      extended by com.rapidminer.operator.io.AbstractReader<ExampleSet>
          extended by com.rapidminer.operator.io.AbstractExampleSource
              extended by com.rapidminer.operator.io.ResultSetExampleSource
                  extended by com.rapidminer.operator.io.KDBExampleSource
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler
Direct Known Subclasses:
BibtexExampleSource, DBaseExampleSource

public abstract class KDBExampleSource
extends ResultSetExampleSource

This class can read arff, comma separated values (csv), dbase and bibtex files. It uses Stefan Haustein's kdb tools.

Author:
Simon Fischer, Ingo Mierswa Exp $

Field Summary
static java.lang.String PARAMETER_DATA_FILE
          The parameter name for "The file containing the data"
 
Fields inherited from class com.rapidminer.operator.io.ResultSetExampleSource
PARAMETER_DATAMANAGEMENT, PARAMETER_ID_ATTRIBUTE, PARAMETER_LABEL_ATTRIBUTE, PARAMETER_WEIGHT_ATTRIBUTE
 
Constructor Summary
KDBExampleSource(OperatorDescription description)
           
 
Method Summary
abstract  java.lang.String getExtension()
           
abstract  java.lang.String getFormat()
           
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 java.sql.ResultSet getResultSet()
          Returns a ResultSet.
 void setNominalValues(java.util.List attributeList, java.sql.ResultSet resultSet, Attribute label)
          Since the ResultSet does not provide information about possible values of nominal attributes, subclasses must set these by implementing this method.
 void tearDown()
          Does nothing.
 
Methods inherited from class com.rapidminer.operator.io.ResultSetExampleSource
createExampleSet, createExampleSet
 
Methods inherited from class com.rapidminer.operator.io.AbstractExampleSource
read
 
Methods inherited from class com.rapidminer.operator.io.AbstractReader
apply, getInputClasses, getOutputClasses
 
Methods inherited from class com.rapidminer.operator.Operator
addError, addValue, addWarning, apply, checkDeprecations, checkForStop, checkIO, checkProperties, clearErrorList, cloneOperator, createExperimentTree, createExperimentTree, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getEncoding, getErrorList, getExperiment, getInnerOperatorsXML, getInput, getInput, getInput, getInputDescription, getIOContainerForInApplyLoopBreakpoint, getIODescription, getLog, getName, getOperatorClassName, getOperatorDescription, getParameter, getParameterAsBoolean, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsString, getParameterList, getParameters, getParameterType, getParent, getProcess, getStartTime, getStatus, getUserDescription, getValue, getValues, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isEnabled, isExpanded, isParallel, isParameterSet, log, logError, logNote, logWarning, performAdditionalChecks, processFinished, processStarts, register, registerOperator, remove, rename, resume, setApplyCount, setBreakpoint, setEnabled, setExpanded, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, unregisterOperator, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER_DATA_FILE

public static final java.lang.String PARAMETER_DATA_FILE
The parameter name for "The file containing the data"

See Also:
Constant Field Values
Constructor Detail

KDBExampleSource

public KDBExampleSource(OperatorDescription description)
Method Detail

getFormat

public abstract java.lang.String getFormat()

getExtension

public abstract java.lang.String getExtension()

tearDown

public void tearDown()
Does nothing.

Specified by:
tearDown in class ResultSetExampleSource

getResultSet

public java.sql.ResultSet getResultSet()
                                throws UndefinedParameterError
Description copied from class: ResultSetExampleSource
Returns a ResultSet.

Specified by:
getResultSet in class ResultSetExampleSource
Throws:
UndefinedParameterError

setNominalValues

public void setNominalValues(java.util.List attributeList,
                             java.sql.ResultSet resultSet,
                             Attribute label)
                      throws OperatorException
Description copied from class: ResultSetExampleSource
Since the ResultSet does not provide information about possible values of nominal attributes, subclasses must set these by implementing this method.

Specified by:
setNominalValues in class ResultSetExampleSource
Parameters:
attributeList - List of Attribute
Throws:
OperatorException

getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Description copied from class: Operator
Returns a list of ParameterTypes describing the parameters of this operator. The default implementation returns an empty list if no input objects can be retained and special parameters for those input objects which can be prevented from being consumed.

Specified by:
getParameterTypes in interface ParameterHandler
Overrides:
getParameterTypes in class ResultSetExampleSource


Copyright © 2001-2009 by Rapid-I