public final class FilterSpecActivatable extends Object
Modifier and Type | Field and Description |
---|---|
static EPTypeClass |
EPTYPE |
Constructor and Description |
---|
FilterSpecActivatable(EventType eventType,
String eventTypeName,
FilterSpecPlan plan,
PropertyEvaluator optionalPropertyEvaluator,
int filterCallbackId)
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) |
int |
getFilterCallbackId() |
EventType |
getFilterForEventType()
Returns type of event to filter for.
|
String |
getFilterForEventTypeName()
Returns the event type name.
|
String |
getFilterText() |
PropertyEvaluator |
getOptionalPropertyEvaluator()
Return the evaluator for property value if any is attached, or none if none attached.
|
FilterSpecPlan |
getPlan()
Returns list of filter parameters.
|
EventType |
getResultEventType()
Returns the result event type of the filter specification.
|
FilterValueSetParam[][] |
getValueSet(MatchedEventMap matchedEvents,
FilterValueSetParam[][] addendum,
ExprEvaluatorContext exprEvaluatorContext,
StatementContextFilterEvalEnv filterEvalEnv)
Returns the values for the filter, using the supplied result events to ask filter parameters
for the value to filter for.
|
int |
hashCode() |
String |
toString() |
public static final EPTypeClass EPTYPE
public FilterSpecActivatable(EventType eventType, String eventTypeName, FilterSpecPlan plan, PropertyEvaluator optionalPropertyEvaluator, int filterCallbackId)
eventType
- is the event typeplan
- plan is a list of filter parameters, i.e. paths and tripletseventTypeName
- is the name of the event typeoptionalPropertyEvaluator
- optional if evaluating properties returned by filtered eventsfilterCallbackId
- filter idIllegalArgumentException
- if validation invalidpublic final EventType getFilterForEventType()
public final FilterSpecPlan getPlan()
public String getFilterForEventTypeName()
public PropertyEvaluator getOptionalPropertyEvaluator()
public EventType getResultEventType()
public FilterValueSetParam[][] getValueSet(MatchedEventMap matchedEvents, FilterValueSetParam[][] addendum, ExprEvaluatorContext exprEvaluatorContext, StatementContextFilterEvalEnv filterEvalEnv)
matchedEvents
- contains the result events to use for determining filter valuesaddendum
- context addendumexprEvaluatorContext
- contextfilterEvalEnv
- envpublic int getFilterCallbackId()
public String getFilterText()
Copyright © 2005–2020. All rights reserved.