|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.filter.FilterSpecCompiled
public final class FilterSpecCompiled
Contains the filter criteria to sift through events. The filter criteria are the event class to look for and a set of parameters (attribute names, operators and constant/range values).
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 events
java.lang.IllegalArgumentException
- if validation invalidMethod Detail |
---|
public 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
-
public 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 compare
public 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)
|
© 2006-2016 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |