com.espertech.esper.filter
Class FilterSpecParam

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

public abstract class FilterSpecParam
extends Object
implements MetaDefItem

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
protected  String propertyName
          The property name of the filter parameter.
 
Method Summary
 boolean equals(Object obj)
           
 FilterOperator getFilterOperator()
          Returns the filter operator type.
abstract  Object getFilterValue(MatchedEventMap matchedEvents)
          Return the filter parameter constant to filter for.
 String getPropertyName()
          Returns the property name for the filter parameter.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyName

protected final String propertyName
The property name of the filter parameter.

Method Detail

getFilterValue

public abstract Object getFilterValue(MatchedEventMap matchedEvents)
Return the filter parameter constant to filter for.

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

getPropertyName

public String getPropertyName()
Returns the property name for the filter parameter.

Returns:
property name

getFilterOperator

public FilterOperator getFilterOperator()
Returns the filter operator type.

Returns:
filter operator type

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

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