Package beamline.filters
Class ExcludeOnEventAttributeEqualityFilter<T extends Serializable>
- java.lang.Object
-
- beamline.filters.ExcludeOnEventAttributeEqualityFilter<T>
-
- Type Parameters:
T- the type of the attribute
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.FilterFunction<BEvent>,org.apache.flink.api.common.functions.Function
- Direct Known Subclasses:
ExcludeActivitiesFilter
public class ExcludeOnEventAttributeEqualityFilter<T extends Serializable> extends Object implements org.apache.flink.api.common.functions.FilterFunction<BEvent>
This filter excludes events based on the equality of a certain event attribute to a given set of values. Values are considered in disjunction (i.e., it is enough that the attribute is equal to one of the values to discard the event).- Author:
- Andrea Burattin
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExcludeOnEventAttributeEqualityFilter(String attributeName, T... values)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(T value)Adds the value to the list of values to be considered for removalbooleanfilter(BEvent t)
-
-
-
Constructor Detail
-
ExcludeOnEventAttributeEqualityFilter
@SafeVarargs public ExcludeOnEventAttributeEqualityFilter(String attributeName, T... values)
Constructor- Parameters:
attributeName- the name of the event attributevalues- the sequence of values to consider
-
-
Method Detail
-
addValue
public void addValue(T value)
Adds the value to the list of values to be considered for removal- Parameters:
value- value
-
filter
public boolean filter(BEvent t)
- Specified by:
filterin interfaceorg.apache.flink.api.common.functions.FilterFunction<T extends Serializable>
-
-