com.rapidminer.operator.io
Class CSVExampleSource

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

public class CSVExampleSource
extends SimpleExampleSource

This operator can read csv files. All values must be separated by "," or by ";", followed by an arbitrary amount of white space. This means that also only the separator characters are allowed. The first line is used for the attribute names as default. Empty values and the question mark will be read as missing values. You can quote the values (including the column separators) with a double quote ("). You can escape the quoting character with a backslash, i.e. \".

For other file formats or column separators you can use in almost all cases the operator SimpleExampleSource or, if this is not sufficient, the operator ExampleSource.

Author:
Ingo Mierswa
Keywords:
csv

Field Summary
 
Fields inherited from class com.rapidminer.operator.io.SimpleExampleSource
PARAMETER_COLUMN_SEPARATORS, PARAMETER_COMMENT_CHARS, PARAMETER_DATAMANAGEMENT, PARAMETER_DECIMAL_POINT_CHARACTER, PARAMETER_FILENAME, PARAMETER_ID_COLUMN, PARAMETER_ID_NAME, PARAMETER_LABEL_COLUMN, PARAMETER_LABEL_NAME, PARAMETER_READ_ATTRIBUTE_NAMES, PARAMETER_SAMPLE_RATIO, PARAMETER_SAMPLE_SIZE, PARAMETER_SKIP_ERROR_LINES, PARAMETER_TRIM_LINES, PARAMETER_USE_COMMENT_CHARACTERS, PARAMETER_USE_QUOTES, PARAMETER_WEIGHT_COLUMN, PARAMETER_WEIGHT_NAME
 
Constructor Summary
CSVExampleSource(OperatorDescription description)
           
 
Method Summary
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 
Methods inherited from class com.rapidminer.operator.io.SimpleExampleSource
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
 

Constructor Detail

CSVExampleSource

public CSVExampleSource(OperatorDescription description)
Method Detail

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 SimpleExampleSource


Copyright © 2001-2009 by Rapid-I