public class VAERevisionProcessorDeclared extends VAERevisionProcessorBase implements ValueAddEventProcessor
eventAdapterService, revisionEventType, revisionEventTypeName, revisionSpec, typeDescriptors
Constructor and Description |
---|
VAERevisionProcessorDeclared(String revisionEventTypeName,
RevisionSpec spec,
StatementStopService statementStopService,
EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,RevisionPropertyTypeDesc> |
createPropertyDescriptors(RevisionSpec spec,
PropertyGroupDesc[] groups)
Creates property descriptors for revision.
|
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.
|
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.
|
getEventAdapterService, getValueAddEventType, validateEventType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueAddEventType, validateEventType
public VAERevisionProcessorDeclared(String revisionEventTypeName, RevisionSpec spec, StatementStopService statementStopService, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator)
revisionEventTypeName
- namespec
- specificationstatementStopService
- for stop handlingeventAdapterService
- for nested property handlingeventTypeIdGenerator
- id generatorpublic EventBean getValueAddEventBean(EventBean theEvent)
ValueAddEventProcessor
getValueAddEventBean
in interface ValueAddEventProcessor
theEvent
- to wrappublic void onUpdate(EventBean[] newData, EventBean[] oldData, NamedWindowRootViewInstance namedWindowRootView, EventTableIndexRepository indexRepository)
ValueAddEventProcessor
onUpdate
in interface ValueAddEventProcessor
newData
- new eventsoldData
- remove streamnamedWindowRootView
- the root viewindexRepository
- delete and select indexespublic Collection<EventBean> getSnapshot(EPStatementAgentInstanceHandle createWindowStmtHandle, Viewable parent)
ValueAddEventProcessor
getSnapshot
in interface ValueAddEventProcessor
createWindowStmtHandle
- statement handle for safe iterationparent
- the provider of datapublic void removeOldData(EventBean[] oldData, EventTableIndexRepository indexRepository, AgentInstanceContext agentInstanceContext)
ValueAddEventProcessor
removeOldData
in interface ValueAddEventProcessor
oldData
- to removeindexRepository
- the indexes to updateagentInstanceContext
- agent instance contextpublic static Map<String,RevisionPropertyTypeDesc> createPropertyDescriptors(RevisionSpec spec, PropertyGroupDesc[] groups)
spec
- specifies revisiongroups
- the groups that group properties