public final class FilterSpecCompiled extends Object
Constructor and Description |
---|
FilterSpecCompiled(EventType eventType,
String eventTypeName,
List<FilterSpecParam>[] filterParameters,
PropertyEvaluator optionalPropertyEvaluator)
Constructor - validates parameter list against event type, throws exception if invalid
property names or mismatcing filter operators are found.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equalsTypeAndFilter(FilterSpecCompiled other)
Compares only the type and filter portion and not the property evaluation portion.
|
EventType |
getFilterForEventType()
Returns type of event to filter for.
|
String |
getFilterForEventTypeName()
Returns the event type name.
|
int |
getFilterSpecIndexAmongAll(FilterSpecCompiled[] filterSpecAll) |
PropertyEvaluator |
getOptionalPropertyEvaluator()
Return the evaluator for property value if any is attached, or none if none attached.
|
FilterSpecParam[][] |
getParameters()
Returns list of filter parameters.
|
EventType |
getResultEventType()
Returns the result event type of the filter specification.
|
FilterValueSet |
getValueSet(MatchedEventMap matchedEvents,
AgentInstanceContext agentInstanceContext,
FilterValueSetParam[][] addendum)
Returns the values for the filter, using the supplied result events to ask filter parameters
for the value to filter for.
|
int |
hashCode() |
protected static FilterSpecParam[] |
sortRemoveDups(List<FilterSpecParam> parameters) |
protected static FilterSpecParam[][] |
sortRemoveDups(List<FilterSpecParam>[] parameters) |
String |
toString() |
public FilterSpecCompiled(EventType eventType, String eventTypeName, List<FilterSpecParam>[] filterParameters, PropertyEvaluator optionalPropertyEvaluator)
eventType
- is the event typefilterParameters
- is a list of filter parameterseventTypeName
- is the name of the event typeoptionalPropertyEvaluator
- optional if evaluating properties returned by filtered eventsIllegalArgumentException
- if validation invalidpublic final EventType getFilterForEventType()
public final FilterSpecParam[][] getParameters()
public String getFilterForEventTypeName()
public PropertyEvaluator getOptionalPropertyEvaluator()
public EventType getResultEventType()
public FilterValueSet getValueSet(MatchedEventMap matchedEvents, AgentInstanceContext agentInstanceContext, FilterValueSetParam[][] addendum)
matchedEvents
- contains the result events to use for determining filter valuesagentInstanceContext
- contextaddendum
- context addendumpublic boolean equalsTypeAndFilter(FilterSpecCompiled other)
other
- filter to comparepublic int getFilterSpecIndexAmongAll(FilterSpecCompiled[] filterSpecAll)
protected static FilterSpecParam[][] sortRemoveDups(List<FilterSpecParam>[] parameters)
protected static FilterSpecParam[] sortRemoveDups(List<FilterSpecParam> parameters)