net.esper.filter
Class FilterParamExprMap

java.lang.Object
  extended by net.esper.filter.FilterParamExprMap

public class FilterParamExprMap
extends Object

A two-sided map for filter parameters mapping filter expression nodes to filter parameters and back. For use in optimizing filter expressions.


Constructor Summary
FilterParamExprMap()
          Ctor.
 
Method Summary
 Collection<FilterSpecParam> getFilterParams()
          Returns all filter parameters.
 List<ExprNode> getUnassignedExpressions()
          Returns all expression nodes for which no filter parameter exists.
 void put(ExprNode exprNode, FilterSpecParam param)
          Add a node and filter param.
 ExprNode removeEntry(FilterSpecParam param)
          Removes a filter parameter and it's associated expression node
 void removeValue(FilterSpecParam param)
          Remove a filter parameter leaving the expression node in place.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterParamExprMap

public FilterParamExprMap()
Ctor.

Method Detail

put

public void put(ExprNode exprNode,
                FilterSpecParam param)
Add a node and filter param.

Parameters:
exprNode - is the node to add
param - is null if the expression node has not optimized form

getUnassignedExpressions

public List<ExprNode> getUnassignedExpressions()
Returns all expression nodes for which no filter parameter exists.

Returns:
list of expression nodes

getFilterParams

public Collection<FilterSpecParam> getFilterParams()
Returns all filter parameters.

Returns:
filter parameters

removeEntry

public ExprNode removeEntry(FilterSpecParam param)
Removes a filter parameter and it's associated expression node

Parameters:
param - is the parameter to remove
Returns:
expression node removed

removeValue

public void removeValue(FilterSpecParam param)
Remove a filter parameter leaving the expression node in place.

Parameters:
param - filter parameter to remove

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