com.rapidminer.operator.preprocessing.filter.attributes
Class NameAttributeFilter
java.lang.Object
com.rapidminer.operator.preprocessing.filter.attributes.AbstractAttributeFilterCondition
com.rapidminer.operator.preprocessing.filter.attributes.NameAttributeFilter
- All Implemented Interfaces:
- AttributeFilterCondition
public class NameAttributeFilter
- extends AbstractAttributeFilterCondition
This Attribute Filter removes every attribute, which name does not match the
Regular expression given by parameter. A data scan is not needed.
- Author:
- Sebastian Land, Ingo Mierswa
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameAttributeFilter
public NameAttributeFilter()
init
public void init(Operator operator)
throws UserError
- Description copied from interface:
AttributeFilterCondition
- Initializes the condition before checking anything. If checking depends on parameters,
their values might be retrieved in this method.
- Specified by:
init in interface AttributeFilterCondition- Overrides:
init in class AbstractAttributeFilterCondition
- Throws:
UserError
beforeScanCheck
public AttributeFilterCondition.ScanResult beforeScanCheck(Attribute attribute)
throws UserError
- Description copied from interface:
AttributeFilterCondition
- This method initializes this condition and resets all counters.
It returns REMOVE, if the attribute can be removed without checking examples.
If it has been removed, no checking during examples will occur.
If it returns UNCHECKED, this Attribute Filter needs a full check and hence the attribute
cannot be deleted or kept.
Distinguishing this is important, because of the inverting, which otherwise might remove attributes
although they only have been kept for later checking.
- Parameters:
attribute - this is the attribute, the filter will have to check for.
- Throws:
UserError
getParameterTypes
public java.util.List<ParameterType> getParameterTypes(Operator operator)
- Description copied from class:
AbstractAttributeFilterCondition
- Just returns an empty list. Subclasses might add parameters
- Specified by:
getParameterTypes in interface AttributeFilterCondition- Overrides:
getParameterTypes in class AbstractAttributeFilterCondition
Copyright © 2001-2009 by Rapid-I