|
||||||||||
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(OutputLimitSelector selector,
Double frequency,
OutputLimitUnit unit)
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
Double frequency,
String frequencyVariable,
OutputLimitUnit unit)
Ctor. |
|
OutputLimitClause(OutputLimitSelector selector,
String frequencyVariable,
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. |
static OutputLimitClause |
create(OutputLimitSelector selector,
String frequencyVariable,
OutputLimitUnit unit)
Creates an output limit clause. |
static OutputLimitClause |
create(String frequencyVariable,
OutputLimitUnit unit)
Creates an output limit clause. |
Double |
getFrequency()
Returns output frequency. |
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. |
OutputLimitUnit |
getUnit()
Returns the unit the frequency is in. |
void |
setFrequency(double frequency)
Sets output frequency. |
void |
setFrequencyVariable(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 |
setUnit(OutputLimitUnit unit)
Sets the unit the frequency is in. |
void |
toEPL(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 frequencypublic OutputLimitClause(OutputLimitSelector selector, String frequencyVariable, OutputLimitUnit unit)
selector
- is the events to selectunit
- the unit for the frequencyfrequencyVariable
- is the variable name providing output rate frequency valuespublic OutputLimitClause(OutputLimitSelector selector, Double frequency, 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 valuesMethod 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(OutputLimitSelector selector, String frequencyVariable, OutputLimitUnit unit)
selector
- is the events to selectunit
- the unit for the frequencyfrequencyVariable
- is the variable providing the output limit frequency
public static OutputLimitClause create(double frequency, OutputLimitUnit unit)
frequency
- a frequency to output atunit
- the unit for the frequency
public static OutputLimitClause create(String frequencyVariable, OutputLimitUnit unit)
frequencyVariable
- is the variable name providing output rate frequency valuesunit
- 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 String getFrequencyVariable()
public void setFrequencyVariable(String frequencyVariable)
frequencyVariable
- variable name or null if no variable is usedpublic void toEPL(StringWriter writer)
writer
- to output to
|
© 2007 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 |