|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.Filter
public class Filter
Filter defines the event type to be filtered for, and an optional expression that returns true if the filter should consider the event, or false to reject the event.
Constructor Summary | |
---|---|
Filter()
Ctor. |
|
Filter(java.lang.String eventTypeName)
Ctor. |
|
Filter(java.lang.String eventTypeName,
Expression filter)
Ctor. |
Method Summary | |
---|---|
static Filter |
create(java.lang.String eventTypeName)
Creates a filter to the given named event type. |
static Filter |
create(java.lang.String eventTypeName,
Expression filter)
Creates a filter to the given named event type and filter expression. |
java.lang.String |
getEventTypeName()
Returns the name of the event type to filter for. |
Expression |
getFilter()
Returns the optional filter expression that tests the event, or null if no filter expression was defined. |
java.util.List<ContainedEventSelect> |
getOptionalPropertySelects()
Returns contained-event spec. |
void |
setEventTypeName(java.lang.String eventTypeName)
Sets the name of the event type to filter for. |
void |
setFilter(Expression filter)
Sets the optional filter expression that tests the event, or null if no filter expression is needed. |
void |
setOptionalPropertySelects(java.util.List<ContainedEventSelect> optionalPropertySelects)
Sets the contained-event selection, if any. |
void |
toEPL(java.io.StringWriter writer,
EPStatementFormatter formatter)
Returns a textual representation of the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Filter()
public Filter(java.lang.String eventTypeName)
eventTypeName
- is the event type namepublic Filter(java.lang.String eventTypeName, Expression filter)
eventTypeName
- is the event type namefilter
- is the filter expressionMethod Detail |
---|
public static Filter create(java.lang.String eventTypeName)
eventTypeName
- is the event type name to filter for
public static Filter create(java.lang.String eventTypeName, Expression filter)
eventTypeName
- is the event type name to filter forfilter
- is the expression filtering out events
public java.lang.String getEventTypeName()
public void setEventTypeName(java.lang.String eventTypeName)
eventTypeName
- name of the event type to filter forpublic Expression getFilter()
public void setFilter(Expression filter)
filter
- is the filter expression to setpublic java.util.List<ContainedEventSelect> getOptionalPropertySelects()
public void setOptionalPropertySelects(java.util.List<ContainedEventSelect> optionalPropertySelects)
optionalPropertySelects
- specpublic void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
writer
- to output toformatter
- for newline-whitespace formatting
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |