|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.ext.IStreamTimeOrderRandomAccess
public class IStreamTimeOrderRandomAccess
Provides random access into a time-ordered-window's data.
Constructor Summary | |
---|---|
IStreamTimeOrderRandomAccess(RandomAccessByIndexObserver 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 |
refresh(TreeMap<Long,ArrayList<EventBean>> sortedEvents,
int currentSize)
Refreshes the random access data with the updated information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IStreamTimeOrderRandomAccess(RandomAccessByIndexObserver updateObserver)
updateObserver
- for indicating updates toMethod Detail |
---|
public void refresh(TreeMap<Long,ArrayList<EventBean>> sortedEvents, int currentSize)
sortedEvents
- is the sorted window contentscurrentSize
- is the current size of the windowpublic 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
|
© 2007 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 |