|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.view.window.IStreamRandomAccess
public class IStreamRandomAccess
For use with length and time window views that must provide random access into data window contents provided for the "previous" expression if used.
Nested Class Summary | |
---|---|
static interface |
IStreamRandomAccess.IStreamRandomAccessUpdateObserver
For indicating that the collection has been updated. |
Constructor Summary | |
---|---|
IStreamRandomAccess(IStreamRandomAccess.IStreamRandomAccessUpdateObserver updateObserver)
Ctor. |
Method Summary | |
---|---|
EventBean |
getNewData(int index)
Returns an new data event given an index. |
EventBean |
getOldData(int index)
Returns an old data event given an index. |
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 IStreamRandomAccess(IStreamRandomAccess.IStreamRandomAccessUpdateObserver 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 getNewData(int index)
RandomAccessByIndex
getNewData
in interface RandomAccessByIndex
index
- to return new data for
public EventBean getOldData(int index)
RandomAccessByIndex
getOldData
in interface RandomAccessByIndex
index
- to return old data for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |