|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.expression.OutputLimitSpec
public class OutputLimitSpec
Spec for building an EventBatch.
Nested Class Summary | |
---|---|
static class |
OutputLimitSpec.DisplayLimit
Enum controlling the type of output limiting. |
Constructor Summary | |
---|---|
OutputLimitSpec(double timeRate,
OutputLimitSpec.DisplayLimit displayLimit)
Ctor. |
|
OutputLimitSpec(int eventRate,
OutputLimitSpec.DisplayLimit displayLimit)
Ctor. |
Method Summary | |
---|---|
int |
getEventRate()
Returns the event rate. |
double |
getTimeRate()
Returns the rate in seconds, if supplied, or zero if not supplied. |
boolean |
isDisplayFirstOnly()
Returns true to output the first event only. |
boolean |
isDisplayLastOnly()
Returns true to output the last event only. |
boolean |
isEventLimit()
Returns the number of events, or zero if no number of events was supplied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputLimitSpec(int eventRate, OutputLimitSpec.DisplayLimit displayLimit)
eventRate
- - the number of events to batch.displayLimit
- - indicates whether to output only the first, only the last, or all eventspublic OutputLimitSpec(double timeRate, OutputLimitSpec.DisplayLimit displayLimit)
timeRate
- - the number of seconds to batch for.displayLimit
- - indicates whether to output only the first, only the last, or all eventsMethod Detail |
---|
public int getEventRate()
public boolean isEventLimit()
public double getTimeRate()
public boolean isDisplayLastOnly()
public boolean isDisplayFirstOnly()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |