com.espertech.esper.filter
Class FilterSpecParam

java.lang.Object
  extended by com.espertech.esper.filter.FilterSpecParam
All Implemented Interfaces:
MetaDefItem, java.io.Serializable
Direct Known Subclasses:
FilterSpecParamConstant, FilterSpecParamContextProp, FilterSpecParamEventProp, FilterSpecParamEventPropIndexed, FilterSpecParamExprNode, FilterSpecParamIn, FilterSpecParamRange

public abstract class FilterSpecParam
extends java.lang.Object
implements MetaDefItem, java.io.Serializable

This class represents one filter parameter in an FilterSpecCompiled filter specification.

Each filerting parameter has an attribute name and operator type.

See Also:
Serialized Form

Field Summary
static FilterSpecParam[] EMPTY_PARAM_ARRAY
           
protected  FilterSpecLookupable lookupable
          The property name of the filter parameter.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 FilterOperator getFilterOperator()
          Returns the filter operator type.
abstract  java.lang.Object getFilterValue(MatchedEventMap matchedEvents, AgentInstanceContext agentInstanceContext)
          Return the filter parameter constant to filter for.
 FilterSpecLookupable getLookupable()
           
 int hashCode()
           
static FilterSpecParam[] toArray(java.util.Collection<FilterSpecParam> coll)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_PARAM_ARRAY

public static final FilterSpecParam[] EMPTY_PARAM_ARRAY

lookupable

protected final FilterSpecLookupable lookupable
The property name of the filter parameter.

Method Detail

getFilterValue

public abstract java.lang.Object getFilterValue(MatchedEventMap matchedEvents,
                                                AgentInstanceContext agentInstanceContext)
Return the filter parameter constant to filter for.

Parameters:
matchedEvents - is the prior results that can be used to determine filter parameters
agentInstanceContext -
Returns:
filter parameter constant's value

getLookupable

public FilterSpecLookupable getLookupable()

getFilterOperator

public FilterOperator getFilterOperator()
Returns the filter operator type.

Returns:
filter operator type

toString

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toArray

public static FilterSpecParam[] toArray(java.util.Collection<FilterSpecParam> coll)

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