com.espertech.esper.filter
Class FilterParamExprMap

java.lang.Object
  extended by com.espertech.esper.filter.FilterParamExprMap

public class FilterParamExprMap
extends java.lang.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
 void add(FilterParamExprMap other)
           
 void clear()
           
 int countUnassignedExpressions()
           
 java.util.Collection<FilterSpecParam> getFilterParams()
          Returns all filter parameters.
 java.util.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 removeNode(ExprNode 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 java.util.List<ExprNode> getUnassignedExpressions()
Returns all expression nodes for which no filter parameter exists.

Returns:
list of expression nodes

countUnassignedExpressions

public int countUnassignedExpressions()

getFilterParams

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

Returns:
filter parameters

removeNode

public void removeNode(ExprNode node)

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

clear

public void clear()

add

public void add(FilterParamExprMap other)

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