net.esper.filter
Class FilterSpecParamIn

java.lang.Object
  extended by net.esper.filter.FilterSpecParam
      extended by net.esper.filter.FilterSpecParamIn

public final class FilterSpecParamIn
extends FilterSpecParam

This class represents a 'in' filter parameter in an FilterSpec filter specification.

The 'in' checks for a list of values.


Constructor Summary
FilterSpecParamIn(String propertyName, FilterOperator filterOperator, List<FilterSpecParamInValue> listofValues, boolean isAllConstants, Class propertyType)
          Ctor.
 
Method Summary
 boolean equals(Object obj)
           
 Object getFilterValue(MatchedEventMap matchedEvents)
          Return the filter parameter constant to filter for.
 Class getFilterValueClass(Map<String,EventType> taggedEventTypes)
          Return the filter parameter constant's class.
 List<FilterSpecParamInValue> getListOfValues()
          Returns the list of values we are asking to match.
 String toString()
           
 
Methods inherited from class net.esper.filter.FilterSpecParam
getFilterOperator, getPropertyName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterSpecParamIn

public FilterSpecParamIn(String propertyName,
                         FilterOperator filterOperator,
                         List<FilterSpecParamInValue> listofValues,
                         boolean isAllConstants,
                         Class propertyType)
                  throws IllegalArgumentException
Ctor.

Parameters:
propertyName - is the event property name
filterOperator - is expected to be the IN-list operator
listofValues - is a list of constants and event property names
isAllConstants - true if there are only constants, nd false if there is one or more property in the values
propertyType - is the type of the property
Throws:
IllegalArgumentException - for illegal args
Method Detail

getFilterValueClass

public final Class getFilterValueClass(Map<String,EventType> taggedEventTypes)
Description copied from class: FilterSpecParam
Return the filter parameter constant's class.

Specified by:
getFilterValueClass in class FilterSpecParam
Parameters:
taggedEventTypes - is the event types per event as-name (tag)
Returns:
filter parameter value class

getFilterValue

public final Object getFilterValue(MatchedEventMap matchedEvents)
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

getListOfValues

public List<FilterSpecParamInValue> getListOfValues()
Returns the list of values we are asking to match.

Returns:
list of filter values

toString

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

equals

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