com.rapidminer.operator.io
Class AccessExampleSource

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.ExampleSource
                  extended by com.rapidminer.operator.io.AccessExampleSource
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler

public class AccessExampleSource
extends ExampleSource

This operator can be used to simplify the reading of MS Access databases. Instead of this operator, the operator DatabaseExampleSource can also be used but would have to be properly initialized. This work is performed by this operator so you simply have to specify the basic database file together with the desired table.

Author:
Sebastian Land

Field Summary
static java.lang.String PARAMETER_DATABASE_FILE
           
static java.lang.String PARAMETER_ID_ATTRIBUTE
          The parameter name for "The (case sensitive) name of the id attribute"
static java.lang.String PARAMETER_LABEL_ATTRIBUTE
          The parameter name for "The (case sensitive) name of the label attribute"
static java.lang.String PARAMETER_PASSWORD
           
static java.lang.String PARAMETER_TABLE_NAME
           
static java.lang.String PARAMETER_USERNAME
           
 
Fields inherited from class com.rapidminer.operator.io.ExampleSource
PARAMETER_ATTRIBUTES, PARAMETER_COLUMN_SEPARATORS, PARAMETER_COMMENT_CHARS, PARAMETER_DATAMANAGEMENT, PARAMETER_DECIMAL_POINT_CHARACTER, PARAMETER_LOCAL_RANDOM_SEED, PARAMETER_PERMUTATE, PARAMETER_QUOTE_CHARACTER, PARAMETER_QUOTING_ESCAPE_CHARACTER, PARAMETER_SAMPLE_RATIO, PARAMETER_SAMPLE_SIZE, PARAMETER_SKIP_ERROR_LINES, PARAMETER_TRIM_LINES, PARAMETER_USE_COMMENT_CHARACTERS, PARAMETER_USE_QUOTES
 
Constructor Summary
AccessExampleSource(OperatorDescription description)
           
 
Method Summary
 ExampleSet createExampleSet()
          Creates (or reads) the ExampleSet that will be returned by AbstractReader.apply().
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 
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_DATABASE_FILE

public static final java.lang.String PARAMETER_DATABASE_FILE
See Also:
Constant Field Values

PARAMETER_USERNAME

public static final java.lang.String PARAMETER_USERNAME
See Also:
Constant Field Values

PARAMETER_PASSWORD

public static final java.lang.String PARAMETER_PASSWORD
See Also:
Constant Field Values

PARAMETER_TABLE_NAME

public static final java.lang.String PARAMETER_TABLE_NAME
See Also:
Constant Field Values

PARAMETER_LABEL_ATTRIBUTE

public static final java.lang.String PARAMETER_LABEL_ATTRIBUTE
The parameter name for "The (case sensitive) name of the label attribute"

See Also:
Constant Field Values

PARAMETER_ID_ATTRIBUTE

public static final java.lang.String PARAMETER_ID_ATTRIBUTE
The parameter name for "The (case sensitive) name of the id attribute"

See Also:
Constant Field Values
Constructor Detail

AccessExampleSource

public AccessExampleSource(OperatorDescription description)
Method Detail

createExampleSet

public ExampleSet createExampleSet()
                            throws OperatorException
Description copied from class: AbstractExampleSource
Creates (or reads) the ExampleSet that will be returned by AbstractReader.apply().

Overrides:
createExampleSet in class ExampleSource
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 ExampleSource


Copyright © 2001-2009 by Rapid-I