net.esper.eql.view
Class OutputProcessView

java.lang.Object
  extended by net.esper.view.ViewSupport
      extended by net.esper.eql.view.OutputProcessView
All Implemented Interfaces:
Iterable<EventBean>, JoinSetIndicator, JoinSetProcessor, EventCollection, View, Viewable
Direct Known Subclasses:
OutputProcessViewDirect, OutputProcessViewPolicy

public abstract class OutputProcessView
extends ViewSupport
implements JoinSetIndicator

Base output processing view that has the responsibility to serve up event type and statement iterator.

Implementation classes may enforce an output rate stabilizing or limiting policy.


Field Summary
protected  ResultSetProcessor resultSetProcessor
          Processes the parent views result set generating events for pushing out to child view.
 
Fields inherited from class net.esper.view.ViewSupport
parent
 
Constructor Summary
protected OutputProcessView(ResultSetProcessor resultSetProcessor)
          Ctor.
 
Method Summary
 EventType getEventType()
          Provides metadata information about the type of object the event collection contains.
 Iterator<EventBean> iterator()
          Allows iteration through all elements in this event collection.
 void setJoinExecutionStrategy(JoinExecutionStrategy joinExecutionStrategy)
          For joins, supplies the join execution strategy that provides iteration over statement results.
 
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
 
Methods inherited from interface net.esper.eql.join.JoinSetProcessor
process
 
Methods inherited from interface net.esper.view.View
update
 

Field Detail

resultSetProcessor

protected final ResultSetProcessor resultSetProcessor
Processes the parent views result set generating events for pushing out to child view.

Constructor Detail

OutputProcessView

protected OutputProcessView(ResultSetProcessor resultSetProcessor)
Ctor.

Parameters:
resultSetProcessor - processes the results posted by parent view or joins
Method Detail

getEventType

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

Specified by:
getEventType in interface EventCollection
Returns:
metadata for the objects in the collection

setJoinExecutionStrategy

public void setJoinExecutionStrategy(JoinExecutionStrategy joinExecutionStrategy)
For joins, supplies the join execution strategy that provides iteration over statement results.

Parameters:
joinExecutionStrategy - executes joins including static (non-continuous) joins

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.

Specified by:
iterator in interface Iterable<EventBean>
Specified by:
iterator in interface EventCollection
Returns:
an iterator which will go through all current elements in the collection.

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