|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.internal.PriorEventBufferUnbound
public class PriorEventBufferUnbound
Buffer class for insert stream events only for use with unbound streams that inserts data only, to serve up one or more prior events in the insert stream based on an index.
Does not expect or care about the remove stream and simple keeps a rolling buffer of new data events up to the maximum prior event we are asking for.
Constructor Summary | |
---|---|
PriorEventBufferUnbound(int maxPriorIndex)
Ctor. |
Method Summary | |
---|---|
void |
destroy()
De-allocate resources held by the collection. |
EventBean |
getNewData(int index)
Returns an new data event given an index. |
EventBean |
getNewDataTail(int index)
|
RollingEventBuffer |
getNewEvents()
|
int |
getNumEventsInsertBuf()
|
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 |
update(EventBean[] newData,
EventBean[] oldData)
Accepts view insert and remove stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PriorEventBufferUnbound(int maxPriorIndex)
maxPriorIndex
- is the highest prior-event index required by any expressionMethod Detail |
---|
public void update(EventBean[] newData, EventBean[] oldData)
ViewUpdatedCollection
update
in interface ViewUpdatedCollection
newData
- is the insert stream events or null if no dataoldData
- is the remove stream events or null if no datapublic 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 void destroy()
ViewUpdatedCollection
destroy
in interface ViewUpdatedCollection
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
public RollingEventBuffer getNewEvents()
public int getNumEventsInsertBuf()
getNumEventsInsertBuf
in interface ViewUpdatedCollection
|
© 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 |