|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.window.IStreamRelativeAccess
public class IStreamRelativeAccess
Provides relative access to insert stream events for certain window.
Nested Class Summary | |
---|---|
static interface |
IStreamRelativeAccess.IStreamRelativeAccessUpdateObserver
For indicating that the collection has been updated. |
Constructor Summary | |
---|---|
IStreamRelativeAccess(IStreamRelativeAccess.IStreamRelativeAccessUpdateObserver updateObserver)
Ctor. |
Method Summary | |
---|---|
void |
destroy()
De-allocate resources held by the collection. |
int |
getNumEventsInsertBuf()
|
EventBean |
getRelativeToEnd(EventBean theEvent,
int prevIndex)
|
EventBean |
getRelativeToEvent(EventBean theEvent,
int prevIndex)
Returns the prior event to the given event counting back the number of events as supplied by index. |
java.util.Iterator<EventBean> |
getWindowToEvent(java.lang.Object evalEvent)
|
java.util.Collection<EventBean> |
getWindowToEventCollReadOnly(java.lang.Object evalEvent)
|
int |
getWindowToEventCount(EventBean evalEvent)
|
void |
update(EventBean[] newData,
EventBean[] oldData)
Accepts view insert and remove stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IStreamRelativeAccess(IStreamRelativeAccess.IStreamRelativeAccessUpdateObserver updateObserver)
updateObserver
- is invoked when updates are receivedMethod Detail |
---|
public void update(EventBean[] newData, EventBean[] oldData)
ViewUpdatedCollection
update
in interface ViewUpdatedCollection
newData
- is the insert stream events or null if no dataoldData
- is the remove stream events or null if no datapublic EventBean getRelativeToEvent(EventBean theEvent, int prevIndex)
RelativeAccessByEventNIndex
getRelativeToEvent
in interface RelativeAccessByEventNIndex
theEvent
- is the event to count back fromprevIndex
- is the number of events to go back
public EventBean getRelativeToEnd(EventBean theEvent, int prevIndex)
getRelativeToEnd
in interface RelativeAccessByEventNIndex
public java.util.Iterator<EventBean> getWindowToEvent(java.lang.Object evalEvent)
getWindowToEvent
in interface RelativeAccessByEventNIndex
public java.util.Collection<EventBean> getWindowToEventCollReadOnly(java.lang.Object evalEvent)
getWindowToEventCollReadOnly
in interface RelativeAccessByEventNIndex
public int getWindowToEventCount(EventBean evalEvent)
getWindowToEventCount
in interface RelativeAccessByEventNIndex
public void destroy()
ViewUpdatedCollection
destroy
in interface ViewUpdatedCollection
public int getNumEventsInsertBuf()
getNumEventsInsertBuf
in interface ViewUpdatedCollection
|
© 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 |