![]() | VirtualDataWindow Methods |
The VirtualDataWindow type exposes the following members.
Name | Description | |
---|---|---|
![]() | GetLookup |
Returns the lookup strategy for use by an EPL statement to obtain data.
This method is invoked one or more times at the time an EPL statement is created that
performs a subquery, join, on-action or fire-and-forget query against the virtual data window.
The lookup strategy returned is used when the EPL statement for which it was created performs
a read-operation against the managed data. Multiple lookup strategies for the same EPL statement
are possible for join statements.
The context object passed in is derived from an analysis of the where-clause and lists the
unique property names of the event type that are index fields, i.e. fields against which the
lookup occurs.
The order of hash and btree properties provided by the context matches the order that lookup
values are provided to the lookup strategy.
|
![]() | HandleEvent |
Handle a management event.
Management events indicate:
|
![]() | Update |
This method is invoked when events are inserted-into or removed-from the virtual data window.
When a statement uses insert-into to insert events into the virtual data window the newData
parameter carries the inserted event.
When a statement uses on-delete to delete events from the virtual data window the oldData
parameter carries the deleted event.
When a statement uses on-merge to merge events with the virtual data window the events passed
depends on the action: For then-delete the oldData carries the removed event, for then-Update
the newData carries the after-Update event and the oldData carries the before-Update event,
for then-insert the newData carries the inserted event.
When a statement uses on-Update to Update events in the virtual data window the newData carries
the after-Update event and the oldData parameter carries the before-Update event.
Implement as follows to post all inserted or removed events to consuming statements:
context.OutputStream.Update(newData, oldData);
For data originating from the virtual data window use the SendEvent() method with "insert-into"
statement to insert events.
|