com.espertech.esper.filter
Class FilterSpecParamExprNode

java.lang.Object
  extended by com.espertech.esper.filter.FilterSpecParam
      extended by com.espertech.esper.filter.FilterSpecParamExprNode
All Implemented Interfaces:
MetaDefItem, java.io.Serializable

public final class FilterSpecParamExprNode
extends FilterSpecParam

This class represents an arbitrary expression node returning a boolean value as a filter parameter in an FilterSpecCompiled filter specification.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.espertech.esper.filter.FilterSpecParam
EMPTY_PARAM_ARRAY, lookupable
 
Constructor Summary
FilterSpecParamExprNode(FilterSpecLookupable lookupable, FilterOperator filterOperator, ExprNode exprNode, java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> taggedEventTypes, java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> arrayEventTypes, VariableService variableService, TableService tableService, EventAdapterService eventAdapterService, FilterBooleanExpressionFactory filterBooleanExpressionFactory, ConfigurationInformation configurationInformation, boolean hasSubquery, boolean hasTableAccess)
          Ctor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> getArrayEventTypes()
           
 EventAdapterService getEventAdapterService()
           
 ExprNode getExprNode()
          Returns the expression node of the boolean expression this filter parameter represents.
 FilterBooleanExpressionFactory getFilterBooleanExpressionFactory()
           
 int getFilterSpecId()
           
 int getFilterSpecParamPathNum()
           
 ExprNodeAdapterBase getFilterValue(MatchedEventMap matchedEvents, AgentInstanceContext agentInstanceContext)
          Return the filter parameter constant to filter for.
 TableService getTableService()
           
 java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> getTaggedEventTypes()
          Returns the map of tag/stream names to event types that the filter expressions map use (for patterns)
 VariableService getVariableService()
           
 int hashCode()
           
 boolean isHasFilterStreamSubquery()
           
 boolean isHasTableAccess()
           
 boolean isHasVariable()
           
 boolean isUseLargeThreadingProfile()
           
 void setFilterSpecId(int filterSpecId)
           
 void setFilterSpecParamPathNum(int filterSpecParamPathNum)
           
 java.lang.String toString()
           
 
Methods inherited from class com.espertech.esper.filter.FilterSpecParam
getFilterOperator, getLookupable, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterSpecParamExprNode

public FilterSpecParamExprNode(FilterSpecLookupable lookupable,
                               FilterOperator filterOperator,
                               ExprNode exprNode,
                               java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> taggedEventTypes,
                               java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> arrayEventTypes,
                               VariableService variableService,
                               TableService tableService,
                               EventAdapterService eventAdapterService,
                               FilterBooleanExpressionFactory filterBooleanExpressionFactory,
                               ConfigurationInformation configurationInformation,
                               boolean hasSubquery,
                               boolean hasTableAccess)
                        throws java.lang.IllegalArgumentException
Ctor.

Parameters:
lookupable - is the lookup-able
filterOperator - is expected to be the BOOLEAN_EXPR operator
exprNode - represents the boolean expression
taggedEventTypes - is null if the expression doesn't need other streams, or is filled with a ordered list of stream names and types
arrayEventTypes - is a map of name tags and event type per tag for repeat-expressions that generate an array of events
variableService - - provides access to variables
eventAdapterService - for creating event types and event beans
Throws:
java.lang.IllegalArgumentException - for illegal args
Method Detail

getExprNode

public ExprNode getExprNode()
Returns the expression node of the boolean expression this filter parameter represents.

Returns:
expression node

getTaggedEventTypes

public java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> getTaggedEventTypes()
Returns the map of tag/stream names to event types that the filter expressions map use (for patterns)

Returns:
map

getFilterValue

public final ExprNodeAdapterBase getFilterValue(MatchedEventMap matchedEvents,
                                                AgentInstanceContext agentInstanceContext)
Description copied from class: FilterSpecParam
Return the filter parameter constant to filter for.

Specified by:
getFilterValue in class FilterSpecParam
Parameters:
matchedEvents - is the prior results that can be used to determine filter parameters
Returns:
filter parameter constant's value

toString

public final java.lang.String toString()
Overrides:
toString in class FilterSpecParam

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class FilterSpecParam

hashCode

public int hashCode()
Overrides:
hashCode in class FilterSpecParam

getFilterSpecId

public int getFilterSpecId()

setFilterSpecId

public void setFilterSpecId(int filterSpecId)

getFilterSpecParamPathNum

public int getFilterSpecParamPathNum()

setFilterSpecParamPathNum

public void setFilterSpecParamPathNum(int filterSpecParamPathNum)

getArrayEventTypes

public java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> getArrayEventTypes()

getEventAdapterService

public EventAdapterService getEventAdapterService()

getFilterBooleanExpressionFactory

public FilterBooleanExpressionFactory getFilterBooleanExpressionFactory()

getVariableService

public VariableService getVariableService()

getTableService

public TableService getTableService()

isHasVariable

public boolean isHasVariable()

isUseLargeThreadingProfile

public boolean isUseLargeThreadingProfile()

isHasFilterStreamSubquery

public boolean isHasFilterStreamSubquery()

isHasTableAccess

public boolean isHasTableAccess()

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com