|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AttributeFilterCondition
This interface must be implemented by classes implementing an AttributeFilterCondition for the AttributeFilter operator.
| Nested Class Summary | |
|---|---|
static class |
AttributeFilterCondition.ScanResult
|
| Method Summary | |
|---|---|
AttributeFilterCondition.ScanResult |
beforeScanCheck(Attribute attribute)
This method initializes this condition and resets all counters. |
AttributeFilterCondition.ScanResult |
check(Attribute attribute,
Example example)
This method checks the given example. |
AttributeFilterCondition.ScanResult |
checkAfterFullScan()
This method has to be invoked after a full scan has been performed if the isNeedingFullScan method returns true. |
java.util.List<ParameterType> |
getParameterTypes(ParameterHandler operator,
InputPort inPort,
int... valueTypes)
This method is used to get parameters needed by this AttributeFilter |
void |
init(ParameterHandler operator)
Initializes the condition before checking anything. |
MetaDataInfo |
isFilteredOutMetaData(AttributeMetaData attribute,
ParameterHandler parameterHandler)
This method tries to check if the given attribute is contained, removed from the resulting operation or if the result is unpredictable. |
boolean |
isNeedingFullScan()
Indicates that this filter needs a full data scan and can evaluate its condition only after the full scan has been performed. |
boolean |
isNeedingScan()
Indicates if this filter needs a data scan, i.e. an invocation of the check method for each example. |
| Method Detail |
|---|
void init(ParameterHandler operator)
throws UserError,
ConditionCreationException
UserError
ConditionCreationException - TODO
MetaDataInfo isFilteredOutMetaData(AttributeMetaData attribute,
ParameterHandler parameterHandler)
throws ConditionCreationException
attribute - the meta data of the attributeparameterHandler - to get the value of the defined parameters
ConditionCreationExceptionboolean isNeedingScan()
boolean isNeedingFullScan()
AttributeFilterCondition.ScanResult beforeScanCheck(Attribute attribute)
throws UserError
attribute - this is the attribute, the filter will have to check for.
ConditionCreationException
UserError
AttributeFilterCondition.ScanResult check(Attribute attribute,
Example example)
AttributeFilterCondition.ScanResult checkAfterFullScan()
java.util.List<ParameterType> getParameterTypes(ParameterHandler operator,
InputPort inPort,
int... valueTypes)
handler - the parameter handler for defining dependencies
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||