net.esper.eql.named
Class NamedWindowOnSelectView

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

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 net.esper.eql.named.NamedWindowOnExprBaseView
namedWindowEventType, rootView
 
Fields inherited from class net.esper.view.ViewSupport
parent
 
Constructor Summary
NamedWindowOnSelectView(StatementStopService statementStopService, LookupStrategy lookupStrategy, NamedWindowRootView rootView, InternalEventRouter internalEventRouter, ResultSetProcessor optionalResultSetProcessor, EPStatementHandle statementHandle)
          Ctor.
 
Method Summary
 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.
 Iterator<EventBean> iterator()
          Allows iteration through all elements in this event collection.
 
Methods inherited from class net.esper.eql.named.NamedWindowOnExprBaseView
statementStopped, update
 
Methods inherited from class net.esper.view.ViewSupport
addView, dumpChildViews, dumpUpdateParams, findDescendent, getParent, getViews, hasViews, 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(StatementStopService statementStopService,
                               LookupStrategy lookupStrategy,
                               NamedWindowRootView rootView,
                               InternalEventRouter internalEventRouter,
                               ResultSetProcessor optionalResultSetProcessor,
                               EPStatementHandle statementHandle)
Ctor.

Parameters:
statementStopService - for indicating a statement was stopped or destroyed for cleanup
lookupStrategy - for handling trigger events to determine deleted events
rootView - the named window root view
internalEventRouter - for insert-into behavior
optionalResultSetProcessor - for processing aggregation, having and ordering
statementHandle - required for routing events
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

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 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.

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com