Package com.espertech.esper.view.window

Examples of com.espertech.esper.view.window.RelativeAccessByEventNIndex


            }
        }
        else
        {
            EventBean evalEvent = eventsPerStream[streamNumber];
            RelativeAccessByEventNIndex relativeAccess = relativeAccessGetter.getAccessor(evalEvent);
            if (!isTail) {
                substituteEvent = relativeAccess.getRelativeToEvent(evalEvent, index);
            }
            else {
                substituteEvent = relativeAccess.getRelativeToEnd(evalEvent, index);
            }
        }
        return substituteEvent;
    }
View Full Code Here


            size = (int) randomAccess.getWindowCount();
        }
        else
        {
            EventBean evalEvent = eventsPerStream[streamNumber];
            RelativeAccessByEventNIndex relativeAccess = relativeAccessGetter.getAccessor(evalEvent);
            size = relativeAccess.getWindowToEventCount(evalEvent);
            events = relativeAccess.getWindowToEvent(evalEvent);
        }

        if (size <= 0) {
            return null;
        }
View Full Code Here

            events = randomAccess.getWindowCollectionReadOnly();
        }
        else
        {
            EventBean evalEvent = eventsPerStream[streamNumber];
            RelativeAccessByEventNIndex relativeAccess = relativeAccessGetter.getAccessor(evalEvent);
            events = relativeAccess.getWindowToEventCollReadOnly(evalEvent);
        }
        return events;
    }
View Full Code Here

            size = (int) randomAccess.getWindowCount();
        }
        else
        {
            EventBean evalEvent = eventsPerStream[streamNumber];
            RelativeAccessByEventNIndex relativeAccess = relativeAccessGetter.getAccessor(evalEvent);
            size = relativeAccess.getWindowToEventCount(evalEvent);
            events = relativeAccess.getWindowToEvent(evalEvent);
        }

        if (size <= 0) {
            return Collections.emptyList();
        }
View Full Code Here

            size = randomAccess.getWindowCount();
        }
        else
        {
            EventBean evalEvent = eventsPerStream[streamNumber];
            RelativeAccessByEventNIndex relativeAccess = relativeAccessGetter.getAccessor(evalEvent);
            size = relativeAccess.getWindowToEventCount(evalEvent);
        }

        return size;
    }
View Full Code Here

            size = (int) randomAccess.getWindowCount();
        }
        else
        {
            EventBean evalEvent = eventsPerStream[streamNumber];
            RelativeAccessByEventNIndex relativeAccess = relativeAccessGetter.getAccessor(evalEvent);
            size = relativeAccess.getWindowToEventCount(evalEvent);
            events = relativeAccess.getWindowToEvent(evalEvent);
        }

        if (size <= 0) {
            return null;
        }
View Full Code Here

            events = randomAccess.getWindowCollectionReadOnly();
        }
        else
        {
            EventBean evalEvent = eventsPerStream[streamNumber];
            RelativeAccessByEventNIndex relativeAccess = relativeAccessGetter.getAccessor(evalEvent);
            events = relativeAccess.getWindowToEventCollReadOnly(evalEvent);
        }
        return events;
    }
View Full Code Here

            size = (int) randomAccess.getWindowCount();
        }
        else
        {
            EventBean evalEvent = eventsPerStream[streamNumber];
            RelativeAccessByEventNIndex relativeAccess = relativeAccessGetter.getAccessor(evalEvent);
            size = relativeAccess.getWindowToEventCount(evalEvent);
            events = relativeAccess.getWindowToEvent(evalEvent);
        }

        if (size <= 0) {
            return Collections.emptyList();
        }
View Full Code Here

            List<ViewResourceCallback> callbacks = callbacksPerIndex.get(reqIndex);
            for (ViewResourceCallback callback : callbacks)
            {
                if (viewUpdatedCollection instanceof RelativeAccessByEventNIndex)
                {
                    RelativeAccessByEventNIndex relativeAccess = (RelativeAccessByEventNIndex) viewUpdatedCollection;
                    callback.setViewResource(new RelativeAccessImpl(relativeAccess, relativeIndex));
                }
                else
                {
                    callback.setViewResource(viewUpdatedCollection);
View Full Code Here

            }
        }
        else
        {
            EventBean evalEvent = eventsPerStream[streamNumber];
            RelativeAccessByEventNIndex relativeAccess = relativeAccessGetter.getAccessor(evalEvent);
            if (!isTail) {
                substituteEvent = relativeAccess.getRelativeToEvent(evalEvent, index);
            }
            else {
                substituteEvent = relativeAccess.getRelativeToEnd(evalEvent, index);
            }
        }
        return substituteEvent;
    }
View Full Code Here

TOP

Related Classes of com.espertech.esper.view.window.RelativeAccessByEventNIndex

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.