|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValueAddEventProcessor
Interface for a processor of base and delta events in a revision event type.
Method Summary | |
---|---|
java.util.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)
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. |
Method Detail |
---|
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 wrap
void onUpdate(EventBean[] newData, EventBean[] oldData, NamedWindowRootViewInstance namedWindowRootView, EventTableIndexRepository indexRepository)
newData
- new eventsoldData
- remove streamnamedWindowRootView
- the root viewindexRepository
- delete and select indexesjava.util.Collection<EventBean> getSnapshot(EPStatementAgentInstanceHandle createWindowStmtHandle, Viewable parent)
createWindowStmtHandle
- statement handle for safe iterationparent
- the provider of data
void removeOldData(EventBean[] oldData, EventTableIndexRepository indexRepository)
oldData
- to removeindexRepository
- the indexes to update
|
© 2006-2015 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 |