public final class FilterSpecCompiled
extends java.lang.Object
Constructor and Description |
---|
FilterSpecCompiled(EventType eventType,
java.lang.String eventTypeName,
java.util.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(java.lang.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.
|
java.lang.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(java.util.List<FilterSpecParam> parameters) |
protected static FilterSpecParam[][] |
sortRemoveDups(java.util.List<FilterSpecParam>[] parameters) |
java.lang.String |
toString() |
public FilterSpecCompiled(EventType eventType, java.lang.String eventTypeName, java.util.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 eventsjava.lang.IllegalArgumentException
- if validation invalidpublic final EventType getFilterForEventType()
public final FilterSpecParam[][] getParameters()
public java.lang.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 final java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsTypeAndFilter(FilterSpecCompiled other)
other
- filter to comparepublic int hashCode()
hashCode
in class java.lang.Object
public int getFilterSpecIndexAmongAll(FilterSpecCompiled[] filterSpecAll)
protected static FilterSpecParam[][] sortRemoveDups(java.util.List<FilterSpecParam>[] parameters)
protected static FilterSpecParam[] sortRemoveDups(java.util.List<FilterSpecParam> parameters)