Class TimeLengthBatchViewFactory
java.lang.Object
com.espertech.esper.common.internal.view.timelengthbatch.TimeLengthBatchViewFactory
- All Implemented Interfaces:
DataWindowViewFactory
,DataWindowViewWithPrevious
,ViewFactory
public class TimeLengthBatchViewFactory
extends Object
implements DataWindowViewFactory, DataWindowViewWithPrevious
Factory for
TimeLengthBatchView
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final EPTypeClass
protected EventType
protected boolean
protected boolean
protected int
protected ExprEvaluator
Number of events to collect before batch fires.protected TimePeriodCompute
Fields inherited from interface com.espertech.esper.common.internal.view.core.ViewFactory
EMPTY_ARRAY, EPTYPEARRAY, EPTYPEARRAYARRAY, SINGLE_ELEMENT_ARRAY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getSize()
void
init
(ViewFactoryContext viewFactoryContext, EPStatementInitServices services) boolean
boolean
makeView
(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext) void
setEventType
(EventType eventType) void
setForceUpdate
(boolean forceUpdate) void
setScheduleCallbackId
(int scheduleCallbackId) void
setSize
(ExprEvaluator size) void
setStartEager
(boolean startEager) void
setTimePeriodCompute
(TimePeriodCompute timePeriodCompute)
-
Field Details
-
EPTYPE
-
size
Number of events to collect before batch fires. -
scheduleCallbackId
protected int scheduleCallbackId -
timePeriodCompute
-
eventType
-
isForceUpdate
protected boolean isForceUpdate -
isStartEager
protected boolean isStartEager
-
-
Constructor Details
-
TimeLengthBatchViewFactory
public TimeLengthBatchViewFactory()
-
-
Method Details
-
makePreviousGetter
- Specified by:
makePreviousGetter
in interfaceDataWindowViewWithPrevious
-
init
- Specified by:
init
in interfaceViewFactory
-
makeView
- Specified by:
makeView
in interfaceViewFactory
-
getEventType
- Specified by:
getEventType
in interfaceViewFactory
-
setSize
-
setScheduleCallbackId
public void setScheduleCallbackId(int scheduleCallbackId) -
setTimePeriodCompute
-
setEventType
- Specified by:
setEventType
in interfaceViewFactory
-
setForceUpdate
public void setForceUpdate(boolean forceUpdate) -
setStartEager
public void setStartEager(boolean startEager) -
getSize
-
getScheduleCallbackId
public int getScheduleCallbackId() -
isForceUpdate
public boolean isForceUpdate() -
isStartEager
public boolean isStartEager() -
getViewName
- Specified by:
getViewName
in interfaceViewFactory
-