net.esper.view.window
Class IStreamRelativeAccess
java.lang.Object
net.esper.view.window.IStreamRelativeAccess
- All Implemented Interfaces:
- ViewUpdatedCollection, RelativeAccessByEventNIndex
public class IStreamRelativeAccess
- extends Object
- implements RelativeAccessByEventNIndex, ViewUpdatedCollection
Provides relative access to insert stream events for certain window.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IStreamRelativeAccess
public IStreamRelativeAccess(IStreamRelativeAccess.UpdateObserver updateObserver)
- Ctor.
- Parameters:
updateObserver
- is invoked when updates are received
update
public void update(EventBean[] newData,
EventBean[] oldData)
- Description copied from interface:
ViewUpdatedCollection
- Accepts view insert and remove stream.
- Specified by:
update
in interface ViewUpdatedCollection
- Parameters:
newData
- is the insert stream events or null if no dataoldData
- is the remove stream events or null if no data
getRelativeToEvent
public EventBean getRelativeToEvent(EventBean event,
int prevIndex)
- Description copied from interface:
RelativeAccessByEventNIndex
- Returns the prior event to the given event counting back the number of events as supplied by index.
- Specified by:
getRelativeToEvent
in interface RelativeAccessByEventNIndex
- Parameters:
event
- is the event to count back fromprevIndex
- is the number of events to go back
- Returns:
- event