net.esper.view.ext
Class IStreamSortedRandomAccess
java.lang.Object
net.esper.view.ext.IStreamSortedRandomAccess
- All Implemented Interfaces:
- RandomAccessByIndex
public class IStreamSortedRandomAccess
- extends Object
- implements RandomAccessByIndex
Provides random access into a sorted-window's data.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IStreamSortedRandomAccess
public IStreamSortedRandomAccess(IStreamSortedRandomAccess.UpdateObserver updateObserver)
refresh
public void refresh(TreeMap<MultiKeyUntyped,LinkedList<EventBean>> sortedEvents,
int currentSize,
int maxSize)
- Refreshes the random access data with the updated information.
- Parameters:
sortedEvents
- is the sorted window contentscurrentSize
- is the current size of the windowmaxSize
- is the maximum size of the window
getNewData
public EventBean getNewData(int index)
- Description copied from interface:
RandomAccessByIndex
- Returns an new data event given an index.
- Specified by:
getNewData
in interface RandomAccessByIndex
- Parameters:
index
- to return new data for
- Returns:
- new data event
getOldData
public EventBean getOldData(int index)
- Description copied from interface:
RandomAccessByIndex
- Returns an old data event given an index.
- Specified by:
getOldData
in interface RandomAccessByIndex
- Parameters:
index
- to return old data for
- Returns:
- old data event