com.rapidminer.operator.io
Class AppendingExampleSetWriter

java.lang.Object
  extended by com.rapidminer.tools.AbstractObservable<Operator>
      extended by com.rapidminer.operator.Operator
          extended by com.rapidminer.operator.io.AbstractWriter<ExampleSet>
              extended by com.rapidminer.operator.io.AbstractExampleSetWriter
                  extended by com.rapidminer.operator.io.AppendingExampleSetWriter
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ResourceConsumer, ParameterHandler, LoggingHandler, Observable<Operator>
Direct Known Subclasses:
ExampleSetWriter, SpecialFormatExampleSetWriter

public abstract class AppendingExampleSetWriter
extends AbstractExampleSetWriter

Provides functionality to determine whether files should be overwritten or appended to.

Author:
Simon Fischer

Field Summary
static int OVERWRITE_MODE_APPEND
           
static int OVERWRITE_MODE_NONE
           
static int OVERWRITE_MODE_OVERWRITE
           
static int OVERWRITE_MODE_OVERWRITE_FIRST
           
static java.lang.String[] OVERWRITE_MODES
           
static java.lang.String PARAMETER_OVERWRITE_MODE
          The parameter name for "Indicates if an existing table should be overwritten.
 
Constructor Summary
AppendingExampleSetWriter(OperatorDescription description)
           
 
Method Summary
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
protected  boolean shouldAppend(java.io.File dataFile)
           
 
Methods inherited from class com.rapidminer.operator.io.AbstractWriter
doWork, supportsEncoding, write
 
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, registerOperator, 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_OVERWRITE_MODE

public static final java.lang.String PARAMETER_OVERWRITE_MODE
The parameter name for "Indicates if an existing table should be overwritten."

See Also:
Constant Field Values

OVERWRITE_MODES

public static final java.lang.String[] OVERWRITE_MODES

OVERWRITE_MODE_NONE

public static final int OVERWRITE_MODE_NONE
See Also:
Constant Field Values

OVERWRITE_MODE_OVERWRITE_FIRST

public static final int OVERWRITE_MODE_OVERWRITE_FIRST
See Also:
Constant Field Values

OVERWRITE_MODE_OVERWRITE

public static final int OVERWRITE_MODE_OVERWRITE
See Also:
Constant Field Values

OVERWRITE_MODE_APPEND

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

AppendingExampleSetWriter

public AppendingExampleSetWriter(OperatorDescription description)
Method Detail

shouldAppend

protected boolean shouldAppend(java.io.File dataFile)
                        throws UndefinedParameterError,
                               UserError
Throws:
UndefinedParameterError
UserError

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 AbstractWriter<ExampleSet>


Copyright © 2001-2009 by Rapid-I