|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.vaevent.VAEVariantProcessor
public class VAEVariantProcessor
Represents a variant event stream, allowing events of disparate event types to be treated polymophically.
Field Summary | |
---|---|
protected VariantEventType |
variantEventType
The event type representing the variant stream. |
protected VariantSpec |
variantSpec
Specification for the variant stream. |
Constructor Summary | |
---|---|
VAEVariantProcessor(VariantSpec variantSpec,
EventTypeIdGenerator eventTypeIdGenerator,
ConfigurationVariantStream config)
Ctor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final VariantSpec variantSpec
protected VariantEventType variantEventType
Constructor Detail |
---|
public VAEVariantProcessor(VariantSpec variantSpec, EventTypeIdGenerator eventTypeIdGenerator, ConfigurationVariantStream config)
variantSpec
- specifies how to handle the disparate eventsMethod Detail |
---|
public EventType getValueAddEventType()
ValueAddEventProcessor
getValueAddEventType
in interface ValueAddEventProcessor
public void validateEventType(EventType eventType) throws ExprValidationException
ValueAddEventProcessor
validateEventType
in interface ValueAddEventProcessor
eventType
- the type of the event participating in revision event type (or not)
ExprValidationException
- if the validation failspublic 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 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 |