com.espertech.esper.filter
Class FilterSpecParamEventProp

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

public final class FilterSpecParamEventProp
extends FilterSpecParam

This class represents a filter parameter containing a reference to another event's property in the event pattern result, for use to describe a filter parameter in a FilterSpecCompiled filter specification.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.espertech.esper.filter.FilterSpecParam
EMPTY_PARAM_ARRAY, lookupable
 
Constructor Summary
FilterSpecParamEventProp(FilterSpecLookupable lookupable, FilterOperator filterOperator, java.lang.String resultEventAsName, java.lang.String resultEventProperty, boolean isMustCoerce, SimpleNumberCoercer numberCoercer, java.lang.Class coercionType, java.lang.String statementName)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class getCoercionType()
          Returns the numeric coercion type.
 java.lang.Object getFilterValue(MatchedEventMap matchedEvents, ExprEvaluatorContext evaluatorContext)
          Return the filter parameter constant to filter for.
 java.lang.String getResultEventAsName()
          Returns tag for result event.
 java.lang.String getResultEventProperty()
          Returns the property of the result event.
 int hashCode()
           
 boolean isMustCoerce()
          Returns true if numeric coercion is required, or false if not
 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

FilterSpecParamEventProp

public FilterSpecParamEventProp(FilterSpecLookupable lookupable,
                                FilterOperator filterOperator,
                                java.lang.String resultEventAsName,
                                java.lang.String resultEventProperty,
                                boolean isMustCoerce,
                                SimpleNumberCoercer numberCoercer,
                                java.lang.Class coercionType,
                                java.lang.String statementName)
                         throws java.lang.IllegalArgumentException
Constructor.

Parameters:
lookupable - is the property or function to get a lookup value
filterOperator - is the type of compare
resultEventAsName - is the name of the result event from which to get a property value to compare
resultEventProperty - is the name of the property to get from the named result event
isMustCoerce - indicates on whether numeric coercion must be performed
coercionType - indicates the numeric coercion type to use
numberCoercer - interface to use to perform coercion
Throws:
java.lang.IllegalArgumentException - if an operator was supplied that does not take a single constant value
Method Detail

isMustCoerce

public boolean isMustCoerce()
Returns true if numeric coercion is required, or false if not

Returns:
true to coerce at runtime

getCoercionType

public java.lang.Class getCoercionType()
Returns the numeric coercion type.

Returns:
type to coerce to

getResultEventAsName

public java.lang.String getResultEventAsName()
Returns tag for result event.

Returns:
tag

getResultEventProperty

public java.lang.String getResultEventProperty()
Returns the property of the result event.

Returns:
property name

getFilterValue

public java.lang.Object getFilterValue(MatchedEventMap matchedEvents,
                                       ExprEvaluatorContext evaluatorContext)
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

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