|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.ext.IStreamSortRankRandomAccess
public class IStreamSortRankRandomAccess
Provides random access into a rank-window's data.
Constructor Summary | |
---|---|
IStreamSortRankRandomAccess(RandomAccessByIndexObserver updateObserver)
Ctor. |
Method Summary | |
---|---|
EventBean |
getNewData(int index)
Returns an new data event given an index. |
EventBean |
getNewDataTail(int index)
|
EventBean |
getOldData(int index)
Returns an old data event given an index. |
java.util.Collection<EventBean> |
getWindowCollectionReadOnly()
|
int |
getWindowCount()
|
java.util.Iterator<EventBean> |
getWindowIterator()
|
void |
refresh(java.util.TreeMap<java.lang.Object,java.lang.Object> 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 IStreamSortRankRandomAccess(RandomAccessByIndexObserver updateObserver)
updateObserver
- for indicating updates toMethod Detail |
---|
public void refresh(java.util.TreeMap<java.lang.Object,java.lang.Object> 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
public EventBean getNewDataTail(int index)
getNewDataTail
in interface RandomAccessByIndex
public java.util.Iterator<EventBean> getWindowIterator()
getWindowIterator
in interface RandomAccessByIndex
public java.util.Collection<EventBean> getWindowCollectionReadOnly()
getWindowCollectionReadOnly
in interface RandomAccessByIndex
public int getWindowCount()
getWindowCount
in interface RandomAccessByIndex
|
© 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 |