|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.AbstractObservable<Operator>
com.rapidminer.operator.Operator
com.rapidminer.operator.AbstractExampleSetProcessing
com.rapidminer.operator.preprocessing.AbstractDataProcessing
com.rapidminer.operator.preprocessing.filter.DateAdjust
public class DateAdjust
This operator allows to adjust a date attribute by adding a constant value in arbitrary units as days, hours or seconds to the attributes value.
| Field Summary | |
|---|---|
static int |
CALENDAR_FIELD_DAY
|
static int |
CALENDAR_FIELD_HOUR
|
static int |
CALENDAR_FIELD_MILLISECOND
|
static int |
CALENDAR_FIELD_MINUTE
|
static int |
CALENDAR_FIELD_MONTH
|
static int |
CALENDAR_FIELD_SECOND
|
static int |
CALENDAR_FIELD_YEAR
|
static java.lang.String[] |
CALENDAR_FIELDS
|
static java.lang.String |
PARAMETER_ADJUSTMENTS
|
static java.lang.String |
PARAMETER_ATTRIBUTE_NAME
|
static java.lang.String |
PARAMETER_DATE_UNIT
|
static java.lang.String |
PARAMETER_KEEP_OLD_ATTRIBUTE
|
| Constructor Summary | |
|---|---|
DateAdjust(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
ExampleSet |
apply(ExampleSet exampleSet)
Delegate for the apply method. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
ResourceConsumptionEstimator |
getResourceConsumptionEstimator()
Subclasses can override this method if they are able to estimate the consumed resources (CPU time and memory), based on their input. |
protected MetaData |
modifyMetaData(ExampleSetMetaData metaData)
Subclasses might override this method to define the meta data transformation performed by this operator. |
boolean |
writesIntoExistingData()
This method indicates whether the operator will perform a write operation on a cell in an existing column of the example set's ExampleTable. |
| Methods inherited from class com.rapidminer.operator.AbstractExampleSetProcessing |
|---|
doWork, getExampleSetInputPort, getExampleSetOutputPort, getInputPort, getRequiredMetaData, shouldAutoConnect |
| 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 |
|---|
public static final java.lang.String PARAMETER_ATTRIBUTE_NAME
public static final java.lang.String PARAMETER_KEEP_OLD_ATTRIBUTE
public static final java.lang.String PARAMETER_ADJUSTMENTS
public static final java.lang.String PARAMETER_DATE_UNIT
public static final java.lang.String[] CALENDAR_FIELDS
public static final int CALENDAR_FIELD_YEAR
public static final int CALENDAR_FIELD_MONTH
public static final int CALENDAR_FIELD_DAY
public static final int CALENDAR_FIELD_HOUR
public static final int CALENDAR_FIELD_MINUTE
public static final int CALENDAR_FIELD_SECOND
public static final int CALENDAR_FIELD_MILLISECOND
| Constructor Detail |
|---|
public DateAdjust(OperatorDescription description)
| Method Detail |
|---|
protected MetaData modifyMetaData(ExampleSetMetaData metaData)
throws UndefinedParameterError
AbstractExampleSetProcessing
modifyMetaData in class AbstractExampleSetProcessingUndefinedParameterError
public ExampleSet apply(ExampleSet exampleSet)
throws OperatorException
AbstractExampleSetProcessing
apply in class AbstractExampleSetProcessingOperatorExceptionpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operatorpublic boolean writesIntoExistingData()
AbstractExampleSetProcessingExampleTable. If yes, the
original example will be completely copied in memory if the original port is used.
writesIntoExistingData in class AbstractExampleSetProcessingpublic ResourceConsumptionEstimator getResourceConsumptionEstimator()
Operator
getResourceConsumptionEstimator in interface ResourceConsumergetResourceConsumptionEstimator in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||