com.rapidminer.operator.io
Class KDBExampleSource

java.lang.Object
  extended by com.rapidminer.tools.AbstractObservable<Operator>
      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, ResourceConsumer, ParameterHandler, LoggingHandler, Observable<Operator>
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 $

Nested Class Summary
 
Nested classes/interfaces inherited from class com.rapidminer.operator.io.AbstractReader
AbstractReader.ReaderDescription
 
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
getGeneratedMetaData, read
 
Methods inherited from class com.rapidminer.operator.io.AbstractReader
addAnnotations, canMakeReaderFor, createReader, doWork, getFileParameterForOperator, isMetaDataCacheable, registerOperator, registerReaderDescription, supportsEncoding
 
Methods inherited from class com.rapidminer.operator.Operator
acceptsInput, addError, addError, addValue, addWarning, apply, apply, assumePreconditionsSatisfied, checkAll, checkAllExcludingMetaData, checkDeprecations, checkForStop, checkIO, checkProperties, clear, clearErrorList, cloneOperator, collectErrors, createExperimentTree, createExperimentTree, createFromXML, createFromXML, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, disconnectPorts, execute, fireUpdate, freeMemory, getAddOnlyAdditionalOutput, getApplyCount, getCompatibilityLevel, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getDOMRepresentation, getEncoding, getErrorList, getExecutionUnit, getExperiment, getIncompatibleVersionChanges, getInput, getInput, getInput, getInputClasses, getInputDescription, getInputPorts, getIODescription, getLog, getLogger, getName, getNumberOfBreakpoints, getOperatorClassName, getOperatorDescription, getOutputClasses, getOutputPorts, getParameter, getParameterAsBoolean, getParameterAsChar, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsRepositoryLocation, getParameterAsString, getParameterHandler, getParameterList, getParameters, getParameterTupel, getParameterType, getParent, getPortOwner, getProcess, getResourceConsumptionEstimator, getRoot, getStartTime, getTransformer, getUserDescription, getValue, getValues, getXML, getXML, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isDirty, isEnabled, isExpanded, isParallel, isParameterSet, isRunning, log, log, logError, logNote, logWarning, lookupOperator, makeDirty, makeDirtyOnUpdate, notifyRenaming, performAdditionalChecks, preAutoWire, processFinished, processStarts, producesOutput, propagateDirtyness, register, remove, removeAndKeepConnections, rename, resume, setBreakpoint, setCompatibilityLevel, setEnabled, setEnclosingProcess, setExpanded, setInput, setListParameter, setPairParameter, setParameter, setParameters, setUserDescription, shouldAutoConnect, shouldAutoConnect, shouldStopStandaloneExecution, toString, transformMetaData, unregisterOperator, updateExecutionOrder, walk, writeXML, writeXML
 
Methods inherited from class com.rapidminer.tools.AbstractObservable
addObserver, addObserverAsFirst, fireUpdate, removeObserver
 
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 OperatorException
Description copied from class: ResultSetExampleSource
Returns a ResultSet.

Specified by:
getResultSet in class ResultSetExampleSource
Throws:
OperatorException

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. ATTENTION! This will create new parameterTypes. For calling already existing parameter types use getParameters().getParameterTypes();

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


Copyright © 2001-2009 by Rapid-I