com.espertech.esper.epl.named
Class NamedWindowOnSelectView

java.lang.Object
  extended by com.espertech.esper.view.ViewSupport
      extended by com.espertech.esper.epl.named.NamedWindowOnExprBaseView
          extended by com.espertech.esper.epl.named.NamedWindowOnSelectView
All Implemented Interfaces:
EventCollection, View, Viewable, java.lang.Iterable<EventBean>

public class NamedWindowOnSelectView
extends NamedWindowOnExprBaseView

View for the on-select statement that handles selecting events from a named window.


Field Summary
 
Fields inherited from class com.espertech.esper.epl.named.NamedWindowOnExprBaseView
rootView
 
Fields inherited from class com.espertech.esper.view.ViewSupport
EMPTY_VIEW_ARRAY
 
Constructor Summary
NamedWindowOnSelectView(SubordWMatchExprLookupStrategy lookupStrategy, NamedWindowRootViewInstance rootView, ExprEvaluatorContext exprEvaluatorContext, NamedWindowOnSelectViewFactory parent, ResultSetProcessor resultSetProcessor, boolean audit, boolean isDelete, TableStateInstance tableStateInstanceInsertInto)
           
 
Method Summary
static java.util.Set<MultiKey<EventBean>> buildJoinResult(EventBean[] triggerEvents, EventBean[] matchingEvents)
           
 EventType getEventType()
          Provides metadata information about the type of object the event collection contains.
 void handleMatching(EventBean[] triggerEvents, EventBean[] matchingEvents)
          Implemented by on-trigger views to action on the combination of trigger and matching events in the named window.
 java.util.Iterator<EventBean> iterator()
          Allows iteration through all elements in this event collection.
 
Methods inherited from class com.espertech.esper.epl.named.NamedWindowOnExprBaseView
getExprEvaluatorContext, update
 
Methods inherited from class com.espertech.esper.view.ViewSupport
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, setParent, updateChildren, updateChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedWindowOnSelectView

public NamedWindowOnSelectView(SubordWMatchExprLookupStrategy lookupStrategy,
                               NamedWindowRootViewInstance rootView,
                               ExprEvaluatorContext exprEvaluatorContext,
                               NamedWindowOnSelectViewFactory parent,
                               ResultSetProcessor resultSetProcessor,
                               boolean audit,
                               boolean isDelete,
                               TableStateInstance tableStateInstanceInsertInto)
Method Detail

handleMatching

public void handleMatching(EventBean[] triggerEvents,
                           EventBean[] matchingEvents)
Description copied from class: NamedWindowOnExprBaseView
Implemented by on-trigger views to action on the combination of trigger and matching events in the named window.

Specified by:
handleMatching in class NamedWindowOnExprBaseView
Parameters:
triggerEvents - is the trigger events (usually 1)
matchingEvents - is the matching events retrieved via lookup strategy

buildJoinResult

public static java.util.Set<MultiKey<EventBean>> buildJoinResult(EventBean[] triggerEvents,
                                                                 EventBean[] matchingEvents)

getEventType

public EventType getEventType()
Description copied from interface: EventCollection
Provides metadata information about the type of object the event collection contains.

Returns:
metadata for the objects in the collection

iterator

public java.util.Iterator<EventBean> iterator()
Description copied from interface: EventCollection
Allows iteration through all elements in this event collection. The iterator will return the elements in the collection in their natural order, or, if there is no natural ordering, in some unpredictable order.

Returns:
an iterator which will go through all current elements in the collection.

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com