|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.OutputLimitClause
public class OutputLimitClause
An output limit clause defines how to limit output of statements and consists of a selector specifiying which events to select to output, a frequency and a unit.
Constructor Summary | |
---|---|
OutputLimitClause()
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
java.lang.Double frequency)
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
java.lang.Double frequency,
java.lang.String frequencyVariable,
OutputLimitUnit unit)
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
Expression[] crontabAtParameters)
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
Expression whenExpression,
java.util.List<Assignment> thenAssignments)
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
OutputLimitUnit unit)
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
OutputLimitUnit unit,
TimePeriodExpression afterTimePeriod,
java.lang.Integer afterNumberOfEvents)
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
java.lang.String frequencyVariable)
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
TimePeriodExpression timePeriodExpression)
Ctor. |
|
OutputLimitClause(TimePeriodExpression afterTimePeriodExpression)
Ctor. |
Method Summary | |
---|---|
OutputLimitClause |
addThenAssignment(Expression assignmentExpression)
Adds a then-keyword variable assigment for use with the when-keyword. |
OutputLimitClause |
afterNumberOfEvents(java.lang.Integer afterNumberOfEvents)
Sets the after-keyword number of events, or null if undefined. |
OutputLimitClause |
afterTimePeriodExpression(TimePeriodExpression afterTimePeriodExpression)
Sets the after-keyword time period. |
static OutputLimitClause |
create(double frequency)
Creates an output limit clause. |
static OutputLimitClause |
create(Expression whenExpression)
Creates an output limit clause with a when-expression and optional then-assignment expressions to be added. |
static OutputLimitClause |
create(OutputLimitSelector selector,
double frequency)
Creates an output limit clause. |
static OutputLimitClause |
create(OutputLimitSelector selector,
java.lang.String frequencyVariable)
Creates an output limit clause. |
static OutputLimitClause |
create(OutputLimitSelector selector,
TimePeriodExpression timePeriodExpression)
Creates an output limit clause. |
static OutputLimitClause |
create(java.lang.String frequencyVariable)
Creates an output limit clause. |
static OutputLimitClause |
create(TimePeriodExpression timePeriodExpression)
Creates an output limit clause. |
static OutputLimitClause |
createAfter(int afterNumEvents)
Create with after-only and number of events. |
static OutputLimitClause |
createAfter(TimePeriodExpression afterTimePeriodExpression)
Create with after-only time period. |
static OutputLimitClause |
createSchedule(Expression[] scheduleParameters)
Creates an output limit clause with a crontab 'at' schedule parameters, see FrequencyParameter and related. |
java.lang.Integer |
getAfterNumberOfEvents()
Returns the after-keyword number of events, or null if undefined. |
Expression |
getAfterTimePeriodExpression()
Returns the after-keyword time period. |
Expression |
getAndAfterTerminateAndExpr()
Returns the optional expression evaluated when a context partition terminates before triggering output. |
java.util.List<Assignment> |
getAndAfterTerminateThenAssignments()
Returns the set-assignments to execute when a context partition terminates. |
Expression[] |
getCrontabAtParameters()
Returns the crontab parameters, or null if not using crontab-like schedule. |
java.lang.Double |
getFrequency()
Returns output frequency. |
java.lang.String |
getFrequencyVariable()
Returns the variable name of the variable providing output rate frequency values, or null if the frequency is a fixed value. |
OutputLimitSelector |
getSelector()
Returns the selector indicating the events to output. |
java.util.List<Assignment> |
getThenAssignments()
Returns the list of optional then-keyword variable assignments, if any |
Expression |
getTimePeriodExpression()
Returns the time period, or null if none provided. |
OutputLimitUnit |
getUnit()
Returns the unit the frequency is in. |
Expression |
getWhenExpression()
Returns the expression that controls output for use with the when-keyword. |
boolean |
isAndAfterTerminate()
Returns true for output upon termination of a context partition |
void |
setAfterNumberOfEvents(java.lang.Integer afterNumberOfEvents)
Sets the after-keyword number of events, or null if undefined. |
void |
setAfterTimePeriodExpression(Expression afterTimePeriodExpression)
Sets the after-keyword time period. |
void |
setAndAfterTerminate(boolean andAfterTerminate)
Set true for output upon termination of a context partition |
void |
setAndAfterTerminateAndExpr(Expression andAfterTerminateAndExpr)
Sets an optional expression evaluated when a context partition terminates before triggering output. |
void |
setAndAfterTerminateThenAssignments(java.util.List<Assignment> andAfterTerminateThenAssignments)
Sets the set-assignments to execute when a context partition terminates. |
void |
setCrontabAtParameters(Expression[] crontabAtParameters)
Crontab. |
void |
setFrequency(double frequency)
Sets output frequency. |
void |
setFrequency(java.lang.Double frequency)
Set frequency. |
void |
setFrequencyVariable(java.lang.String frequencyVariable)
Sets the variable name of the variable providing output rate frequency values, or null if the frequency is a fixed value. |
void |
setSelector(OutputLimitSelector selector)
Sets the selector indicating the events to output. |
void |
setThenAssignments(java.util.List<Assignment> thenAssignments)
Set then. |
void |
setTimePeriodExpression(Expression timePeriodExpression)
Crontab |
void |
setUnit(OutputLimitUnit unit)
Sets the unit the frequency is in. |
void |
setWhenExpression(Expression whenExpression)
Set when. |
void |
toEPL(java.io.StringWriter writer)
Renders the clause in textual representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputLimitClause()
public OutputLimitClause(OutputLimitSelector selector, OutputLimitUnit unit)
selector
- selectorunit
- unitpublic OutputLimitClause(OutputLimitSelector selector, java.lang.Double frequency)
selector
- is the events to selectfrequency
- a frequency to output atpublic OutputLimitClause(OutputLimitSelector selector, TimePeriodExpression timePeriodExpression)
selector
- is the events to selecttimePeriodExpression
- the unit for the frequencypublic OutputLimitClause(TimePeriodExpression afterTimePeriodExpression)
afterTimePeriodExpression
- timer period for after.public OutputLimitClause(OutputLimitSelector selector, java.lang.String frequencyVariable)
selector
- is the events to selectfrequencyVariable
- is the variable name providing output rate frequency valuespublic OutputLimitClause(OutputLimitSelector selector, java.lang.Double frequency, java.lang.String frequencyVariable, OutputLimitUnit unit)
selector
- is the events to selectfrequency
- a frequency to output atunit
- the unit for the frequencyfrequencyVariable
- is the variable name providing output rate frequency valuespublic OutputLimitClause(OutputLimitSelector selector, OutputLimitUnit unit, TimePeriodExpression afterTimePeriod, java.lang.Integer afterNumberOfEvents)
selector
- is the events to selectunit
- the unit of selectionafterTimePeriod
- after-keyword time periodafterNumberOfEvents
- after-keyword number of eventspublic OutputLimitClause(OutputLimitSelector selector, Expression[] crontabAtParameters)
selector
- is the events to selectcrontabAtParameters
- the crontab schedule parameterspublic OutputLimitClause(OutputLimitSelector selector, Expression whenExpression, java.util.List<Assignment> thenAssignments)
selector
- is the events to selectwhenExpression
- the boolean expression to evaluate to control outputthenAssignments
- the variable assignments, optional or an empty listMethod Detail |
---|
public static OutputLimitClause create(TimePeriodExpression timePeriodExpression)
timePeriodExpression
- a frequency to output at
public static OutputLimitClause createAfter(TimePeriodExpression afterTimePeriodExpression)
afterTimePeriodExpression
- time period
public static OutputLimitClause createAfter(int afterNumEvents)
afterNumEvents
- num events
public static OutputLimitClause create(OutputLimitSelector selector, TimePeriodExpression timePeriodExpression)
selector
- is the events to selecttimePeriodExpression
- a frequency to output at
public static OutputLimitClause create(OutputLimitSelector selector, double frequency)
selector
- is the events to selectfrequency
- a frequency to output at
public static OutputLimitClause create(OutputLimitSelector selector, java.lang.String frequencyVariable)
selector
- is the events to selectfrequencyVariable
- is the variable providing the output limit frequency
public static OutputLimitClause create(double frequency)
frequency
- a frequency to output at
public static OutputLimitClause create(java.lang.String frequencyVariable)
frequencyVariable
- is the variable name providing output rate frequency values
public static OutputLimitClause create(Expression whenExpression)
whenExpression
- the expression that returns true to trigger output
public static OutputLimitClause createSchedule(Expression[] scheduleParameters)
FrequencyParameter
and related.
scheduleParameters
- the crontab schedule parameters
public OutputLimitSelector getSelector()
public void setSelector(OutputLimitSelector selector)
selector
- to setpublic java.lang.Double getFrequency()
public void setFrequency(double frequency)
frequency
- is the frequency of outputpublic OutputLimitUnit getUnit()
public void setUnit(OutputLimitUnit unit)
unit
- is the unit for the frequencypublic java.lang.String getFrequencyVariable()
public void setFrequencyVariable(java.lang.String frequencyVariable)
frequencyVariable
- variable name or null if no variable is usedpublic Expression getWhenExpression()
public Expression getTimePeriodExpression()
public java.util.List<Assignment> getThenAssignments()
public OutputLimitClause addThenAssignment(Expression assignmentExpression)
assignmentExpression
- expression to calculate new value
public Expression[] getCrontabAtParameters()
public boolean isAndAfterTerminate()
public void setAndAfterTerminate(boolean andAfterTerminate)
andAfterTerminate
- indicatorpublic void toEPL(java.io.StringWriter writer)
writer
- to output topublic Expression getAfterTimePeriodExpression()
public void setAfterTimePeriodExpression(Expression afterTimePeriodExpression)
afterTimePeriodExpression
- after-keyword time periodpublic OutputLimitClause afterTimePeriodExpression(TimePeriodExpression afterTimePeriodExpression)
afterTimePeriodExpression
- after-keyword time period
public java.lang.Integer getAfterNumberOfEvents()
public void setFrequency(java.lang.Double frequency)
frequency
- to setpublic void setWhenExpression(Expression whenExpression)
whenExpression
- to setpublic void setThenAssignments(java.util.List<Assignment> thenAssignments)
thenAssignments
- to setpublic void setCrontabAtParameters(Expression[] crontabAtParameters)
crontabAtParameters
- to setpublic void setTimePeriodExpression(Expression timePeriodExpression)
timePeriodExpression
- to setpublic void setAfterNumberOfEvents(java.lang.Integer afterNumberOfEvents)
afterNumberOfEvents
- set num events for after-keywordpublic OutputLimitClause afterNumberOfEvents(java.lang.Integer afterNumberOfEvents)
afterNumberOfEvents
- set num events for after-keyword
public Expression getAndAfterTerminateAndExpr()
public void setAndAfterTerminateAndExpr(Expression andAfterTerminateAndExpr)
andAfterTerminateAndExpr
- expressionpublic java.util.List<Assignment> getAndAfterTerminateThenAssignments()
public void setAndAfterTerminateThenAssignments(java.util.List<Assignment> andAfterTerminateThenAssignments)
andAfterTerminateThenAssignments
- set-assignments
|
© 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 |