net.esper.pattern
Class EvalFilterNode

java.lang.Object
  extended by net.esper.pattern.EvalNode
      extended by net.esper.pattern.EvalFilterNode
All Implemented Interfaces:
Serializable, MetaDefItem

public final class EvalFilterNode
extends EvalNode

This class represents a filter of events in the evaluation tree representing any event expressions.

See Also:
Serialized Form

Constructor Summary
EvalFilterNode(FilterSpecRaw filterSpecification, String eventAsName)
          Constructor.
 
Method Summary
 String getEventAsName()
          Returns the tag for any matching events to this filter, or null since tags are optional.
 FilterSpecCompiled getFilterSpec()
          Returns filter specification.
 FilterSpecRaw getRawFilterSpec()
          Returns the raw (unoptimized/validated) filter definition.
 EvalStateNode newState(Evaluator parentNode, MatchedEventMap beginState, PatternContext context, Object stateNodeId)
          Create the evaluation state node containing the truth value state for each operator in an event expression.
 void setFilterSpec(FilterSpecCompiled filterSpec)
          Sets a validated and optimized filter specification
 String toString()
           
 
Methods inherited from class net.esper.pattern.EvalNode
addChildNode, dumpDebug, getChildNodes, getNodeNumber, recursiveAnalyzeChildNodes, setNodeNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvalFilterNode

public EvalFilterNode(FilterSpecRaw filterSpecification,
                      String eventAsName)
Constructor.

Parameters:
filterSpecification - specifies the filter properties
eventAsName - is the name to use for adding matching events to the MatchedEventMap table used when indicating truth value of true.
Method Detail

newState

public final EvalStateNode newState(Evaluator parentNode,
                                    MatchedEventMap beginState,
                                    PatternContext context,
                                    Object stateNodeId)
Description copied from class: EvalNode
Create the evaluation state node containing the truth value state for each operator in an event expression.

Specified by:
newState in class EvalNode
Parameters:
parentNode - is the parent evaluator node that this node indicates a change in truth value to
beginState - is the container for events that makes up the start state
context - is the handle to services required for evaluation
stateNodeId - is the new state object's identifier
Returns:
state node containing the truth value state for the operator

getRawFilterSpec

public FilterSpecRaw getRawFilterSpec()
Returns the raw (unoptimized/validated) filter definition.

Returns:
filter def

getFilterSpec

public final FilterSpecCompiled getFilterSpec()
Returns filter specification.

Returns:
filter definition

setFilterSpec

public void setFilterSpec(FilterSpecCompiled filterSpec)
Sets a validated and optimized filter specification

Parameters:
filterSpec - is the optimized filter

getEventAsName

public final String getEventAsName()
Returns the tag for any matching events to this filter, or null since tags are optional.

Returns:
tag string for event

toString

public final String toString()
Overrides:
toString in class Object

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com