|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.vaevent.VAERevisionProcessorBase
com.espertech.esper.event.vaevent.VAERevisionProcessorDeclared
public class VAERevisionProcessorDeclared
Provides overlay strategy for property group-based versioning.
Field Summary |
---|
Fields inherited from class com.espertech.esper.event.vaevent.VAERevisionProcessorBase |
---|
eventAdapterService, revisionEventType, revisionEventTypeName, revisionSpec, typeDescriptors |
Constructor Summary | |
---|---|
VAERevisionProcessorDeclared(java.lang.String revisionEventTypeName,
RevisionSpec spec,
StatementStopService statementStopService,
EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator)
Ctor. |
Method Summary | |
---|---|
static java.util.Map<java.lang.String,RevisionPropertyTypeDesc> |
createPropertyDescriptors(RevisionSpec spec,
PropertyGroupDesc[] groups)
Creates property descriptors for revision. |
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. |
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. |
Methods inherited from class com.espertech.esper.event.vaevent.VAERevisionProcessorBase |
---|
getEventAdapterService, getValueAddEventType, validateEventType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.event.vaevent.ValueAddEventProcessor |
---|
getValueAddEventType, validateEventType |
Constructor Detail |
---|
public VAERevisionProcessorDeclared(java.lang.String revisionEventTypeName, RevisionSpec spec, StatementStopService statementStopService, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator)
revisionEventTypeName
- namespec
- specificationstatementStopService
- for stop handlingeventAdapterService
- for nested property handlingMethod Detail |
---|
public EventBean getValueAddEventBean(EventBean theEvent)
ValueAddEventProcessor
getValueAddEventBean
in interface ValueAddEventProcessor
theEvent
- to wrap
public 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 java.util.Collection<EventBean> getSnapshot(EPStatementAgentInstanceHandle createWindowStmtHandle, Viewable parent)
ValueAddEventProcessor
getSnapshot
in interface ValueAddEventProcessor
createWindowStmtHandle
- statement handle for safe iterationparent
- the provider of data
public void removeOldData(EventBean[] oldData, EventTableIndexRepository indexRepository)
ValueAddEventProcessor
removeOldData
in interface ValueAddEventProcessor
oldData
- to removeindexRepository
- the indexes to updatepublic static java.util.Map<java.lang.String,RevisionPropertyTypeDesc> createPropertyDescriptors(RevisionSpec spec, PropertyGroupDesc[] groups)
spec
- specifies revisiongroups
- the groups that group properties
|
© 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 |