Class IStreamSortRankRandomAccessImpl
java.lang.Object
com.espertech.esper.common.internal.view.previous.IStreamSortRankRandomAccessImpl
- All Implemented Interfaces:
RandomAccessByIndex
,IStreamSortRankRandomAccess
public class IStreamSortRankRandomAccessImpl
extends Object
implements RandomAccessByIndex, IStreamSortRankRandomAccess
Provides random access into a rank-window's data.
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.view.access.RandomAccessByIndex
EPTYPE
-
Constructor Summary
ConstructorDescriptionIStreamSortRankRandomAccessImpl
(RandomAccessByIndexObserver updateObserver) Ctor. -
Method Summary
Modifier and TypeMethodDescriptiongetNewData
(int index) Returns an new data event given an index.getNewDataTail
(int index) getOldData
(int index) Returns an old data event given an index.int
void
Refreshes the random access data with the updated information.
-
Constructor Details
-
IStreamSortRankRandomAccessImpl
Ctor.- Parameters:
updateObserver
- for indicating updates to
-
-
Method Details
-
refresh
Refreshes the random access data with the updated information.- Specified by:
refresh
in interfaceIStreamSortRankRandomAccess
- Parameters:
sortedEvents
- is the sorted window contentscurrentSize
- is the current size of the windowmaxSize
- is the maximum size of the window
-
getNewData
Description copied from interface:RandomAccessByIndex
Returns an new data event given an index.- Specified by:
getNewData
in interfaceRandomAccessByIndex
- Parameters:
index
- to return new data for- Returns:
- new data event
-
getOldData
Description copied from interface:RandomAccessByIndex
Returns an old data event given an index.- Specified by:
getOldData
in interfaceRandomAccessByIndex
- Parameters:
index
- to return old data for- Returns:
- old data event
-
getNewDataTail
- Specified by:
getNewDataTail
in interfaceRandomAccessByIndex
-
getWindowIterator
- Specified by:
getWindowIterator
in interfaceRandomAccessByIndex
-
getWindowCollectionReadOnly
- Specified by:
getWindowCollectionReadOnly
in interfaceRandomAccessByIndex
-
getWindowCount
public int getWindowCount()- Specified by:
getWindowCount
in interfaceRandomAccessByIndex
-