com.rapidminer.operator.io
Class DasyLabDataReader

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

public class DasyLabDataReader
extends BytewiseExampleSource

This operator allows to import data from DasyLab files (.DDF) into RapidMiner. Currently only universal format 1 is supported. External files (.DDB) and histogram data are currently not supported.

The parameter timestamp allows to configure whether and what kind of timestamp should be included in the example set. If it is set to relative, the timestamp attribute captures the amount of milliseconds since the file start time. If it is set to absolute, the absolute time is used to timestamp the examples.

Author:
Tobias Malbrecht

Field Summary
static java.lang.String PARAMETER_TIMESTAMP
           
static java.lang.String[] PARAMETER_TIMESTAMP_OPTIONS
           
static int TIMESTAMP_ABSOLUTE
           
static int TIMESTAMP_NONE
           
static int TIMESTAMP_RELATIVE
           
 
Fields inherited from class com.rapidminer.operator.io.BytewiseExampleSource
GENERIC_ERROR_MESSAGE, LENGTH_BYTE, LENGTH_DOUBLE, LENGTH_INT_32, PARAMETER_DATAMANAGEMENT, PARAMETER_FILENAME, UNSPECIFIED_ERROR_MESSAGE
 
Constructor Summary
DasyLabDataReader(OperatorDescription description)
           
 
Method Summary
protected  java.lang.String getFileSuffix()
          Returns the suffix of the files which should be read by the input operator.
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
protected  ExampleSet readStream(java.io.InputStream inputStream, DataRowFactory dataRowFactory)
          Reads the given file and constructs an example set from the read data.
 
Methods inherited from class com.rapidminer.operator.io.BytewiseExampleSource
createExampleSet, extract2ByteInt, extractDouble, extractFloat, extractInt, extractString, read, read, read, read, readWithoutLengthCheck
 
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_TIMESTAMP

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

PARAMETER_TIMESTAMP_OPTIONS

public static final java.lang.String[] PARAMETER_TIMESTAMP_OPTIONS

TIMESTAMP_NONE

public static final int TIMESTAMP_NONE
See Also:
Constant Field Values

TIMESTAMP_RELATIVE

public static final int TIMESTAMP_RELATIVE
See Also:
Constant Field Values

TIMESTAMP_ABSOLUTE

public static final int TIMESTAMP_ABSOLUTE
See Also:
Constant Field Values
Constructor Detail

DasyLabDataReader

public DasyLabDataReader(OperatorDescription description)
Method Detail

getFileSuffix

protected java.lang.String getFileSuffix()
Description copied from class: BytewiseExampleSource
Returns the suffix of the files which should be read by the input operator.

Specified by:
getFileSuffix in class BytewiseExampleSource

readStream

protected ExampleSet readStream(java.io.InputStream inputStream,
                                DataRowFactory dataRowFactory)
                         throws java.io.IOException,
                                UndefinedParameterError
Description copied from class: BytewiseExampleSource
Reads the given file and constructs an example set from the read data.

Specified by:
readStream in class BytewiseExampleSource
Throws:
java.io.IOException
UndefinedParameterError

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 BytewiseExampleSource


Copyright © 2001-2009 by Rapid-I