|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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(OutputLimitSelector selector,
double frequency,
OutputLimitUnit unit)
Ctor. |
Method Summary | |
---|---|
static OutputLimitClause |
create(double frequency,
OutputLimitUnit unit)
Creates an output limit clause. |
static OutputLimitClause |
create(OutputLimitSelector selector,
double frequency,
OutputLimitUnit unit)
Creates an output limit clause. |
double |
getFrequency()
Returns output frequency. |
OutputLimitSelector |
getSelector()
Returns the selector indicating the events to output. |
OutputLimitUnit |
getUnit()
Returns the unit the frequency is in. |
void |
setFrequency(double frequency)
Sets output frequency. |
void |
setSelector(OutputLimitSelector selector)
Sets the selector indicating the events to output. |
void |
setUnit(OutputLimitUnit unit)
Sets the unit the frequency is in. |
void |
toEQL(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(OutputLimitSelector selector, double frequency, OutputLimitUnit unit)
selector
- is the events to selectfrequency
- a frequency to output atunit
- the unit for the frequencyMethod Detail |
---|
public static OutputLimitClause create(OutputLimitSelector selector, double frequency, OutputLimitUnit unit)
selector
- is the events to selectfrequency
- a frequency to output atunit
- the unit for the frequency
public static OutputLimitClause create(double frequency, OutputLimitUnit unit)
frequency
- a frequency to output atunit
- the unit for the frequency
public OutputLimitSelector getSelector()
public void setSelector(OutputLimitSelector selector)
selector
- to setpublic 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 void toEQL(StringWriter writer)
writer
- to output to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |