public interface ValueAddEventProcessor
Modifier and Type | Method and Description |
---|---|
Collection<EventBean> |
getSnapshot(EPStatementAgentInstanceHandle createWindowStmtHandle,
Viewable parent)
Handle iteration over revision event contents.
|
EventBean |
getValueAddEventBean(EventBean theEvent)
For use in executing an insert-into, wraps the given event applying the revision event type,
but not yet computing a new revision.
|
EventType |
getValueAddEventType()
Returns the event type that this revision processor generates.
|
void |
onUpdate(EventBean[] newData,
EventBean[] oldData,
NamedWindowRootViewInstance namedWindowRootView,
EventTableIndexRepository indexRepository)
Upon new events arriving into a named window (new data), and upon events being deleted
via on-delete (old data), update child views of the root view and apply to index repository as required (fast deletion).
|
void |
removeOldData(EventBean[] oldData,
EventTableIndexRepository indexRepository,
AgentInstanceContext agentInstanceContext)
Called each time a data window posts a remove stream event, to indicate that a data window
remove an event as it expired according to a specified expiration policy.
|
void |
validateEventType(EventType eventType)
For use in checking insert-into statements, validates that the given type is eligible for revision event.
|
EventType getValueAddEventType()
void validateEventType(EventType eventType) throws ExprValidationException
eventType
- the type of the event participating in revision event type (or not)ExprValidationException
- if the validation failsEventBean getValueAddEventBean(EventBean theEvent)
theEvent
- to wrapvoid onUpdate(EventBean[] newData, EventBean[] oldData, NamedWindowRootViewInstance namedWindowRootView, EventTableIndexRepository indexRepository)
newData
- new eventsoldData
- remove streamnamedWindowRootView
- the root viewindexRepository
- delete and select indexesCollection<EventBean> getSnapshot(EPStatementAgentInstanceHandle createWindowStmtHandle, Viewable parent)
createWindowStmtHandle
- statement handle for safe iterationparent
- the provider of datavoid removeOldData(EventBean[] oldData, EventTableIndexRepository indexRepository, AgentInstanceContext agentInstanceContext)
oldData
- to removeindexRepository
- the indexes to updateagentInstanceContext
- agent instance context