com.espertech.esper.client.soda
Class PatternFilterExpr

java.lang.Object
  extended by com.espertech.esper.client.soda.PatternExprBase
      extended by com.espertech.esper.client.soda.PatternFilterExpr
All Implemented Interfaces:
PatternExpr, java.io.Serializable

public class PatternFilterExpr
extends PatternExprBase

Filter for use in pattern expressions.

See Also:
Serialized Form

Constructor Summary
PatternFilterExpr()
          Ctor.
PatternFilterExpr(Filter filter)
          Ctor.
PatternFilterExpr(Filter filter, java.lang.String tagName)
          Ctor.
 
Method Summary
 Filter getFilter()
          Returns the filter specification.
 java.lang.Integer getOptionalConsumptionLevel()
          Returns the consume level, if assigned.
 PatternExprPrecedenceEnum getPrecedence()
          Returns the precedence.
 java.lang.String getTagName()
          Returns the tag name.
 void setFilter(Filter filter)
          Sets the filter specification.
 void setOptionalConsumptionLevel(java.lang.Integer optionalConsumptionLevel)
          Sets the consume level.
 void setTagName(java.lang.String tagName)
          Sets the tag name.
 void toPrecedenceFreeEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
          Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.
 
Methods inherited from class com.espertech.esper.client.soda.PatternExprBase
addChild, getChildren, getTreeObjectName, setChildren, setTreeObjectName, toEPL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternFilterExpr

public PatternFilterExpr()
Ctor.


PatternFilterExpr

public PatternFilterExpr(Filter filter)
Ctor.

Parameters:
filter - specifies to events to filter out

PatternFilterExpr

public PatternFilterExpr(Filter filter,
                         java.lang.String tagName)
Ctor.

Parameters:
filter - specifies to events to filter out
tagName - specifies the name of the tag to assigned to matching events
Method Detail

getTagName

public java.lang.String getTagName()
Returns the tag name.

Returns:
tag name.

setTagName

public void setTagName(java.lang.String tagName)
Sets the tag name.

Parameters:
tagName - tag name to set

getFilter

public Filter getFilter()
Returns the filter specification.

Returns:
filter

setFilter

public void setFilter(Filter filter)
Sets the filter specification.

Parameters:
filter - to use

getPrecedence

public PatternExprPrecedenceEnum getPrecedence()
Description copied from interface: PatternExpr
Returns the precedence.

Returns:
precedence

getOptionalConsumptionLevel

public java.lang.Integer getOptionalConsumptionLevel()
Returns the consume level, if assigned.

Returns:
consume level

setOptionalConsumptionLevel

public void setOptionalConsumptionLevel(java.lang.Integer optionalConsumptionLevel)
Sets the consume level.

Parameters:
optionalConsumptionLevel - consume level

toPrecedenceFreeEPL

public void toPrecedenceFreeEPL(java.io.StringWriter writer,
                                EPStatementFormatter formatter)
Description copied from class: PatternExprBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.

Specified by:
toPrecedenceFreeEPL in class PatternExprBase
Parameters:
writer - is the output to use
formatter - for newline-whitespace formatting

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