|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.view.ext.IStreamSortedRandomAccess
public class IStreamSortedRandomAccess
Provides random access into a sorted-window's data.
Constructor Summary | |
---|---|
IStreamSortedRandomAccess()
|
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<MultiKeyUntyped,LinkedList<EventBean>> sortedEvents,
int currentSize,
int maxSize)
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 IStreamSortedRandomAccess()
Method Detail |
---|
public void refresh(TreeMap<MultiKeyUntyped,LinkedList<EventBean>> sortedEvents, int currentSize, int maxSize)
sortedEvents
- is the sorted window contentscurrentSize
- is the current size of the windowmaxSize
- is the maximum 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |