net.esper.eql.view
Class SelectExprView

java.lang.Object
  extended by net.esper.view.ViewSupport
      extended by net.esper.eql.view.SelectExprView
All Implemented Interfaces:
java.lang.Iterable<EventBean>, JoinSetIndicator, JoinSetProcessor, EventCollection, View, Viewable

public class SelectExprView
extends ViewSupport
implements JoinSetIndicator

Simple filter view filtering events using a filter expression tree.


Field Summary
 
Fields inherited from class net.esper.view.ViewSupport
parent
 
Constructor Summary
SelectExprView(ResultSetProcessor resultSetProcessor)
          Ctor.
 
Method Summary
 java.lang.String attachesTo(Viewable parentViewable)
          Return null if the view will accept being attached to a particular object.
 EventType getEventType()
          Provides metadata information about the type of object the event collection contains.
 java.util.Iterator<EventBean> iterator()
          Allows iteration through all elements in this event collection.
 void process(java.util.Set<MultiKey<EventBean>> newEvents, java.util.Set<MultiKey<EventBean>> oldEvents)
          This process (update) method is for participation in a join.
 void update(EventBean[] newData, EventBean[] oldData)
          The update method is called if the view does not participate in a join.
 
Methods inherited from class net.esper.view.ViewSupport
addView, dumpChildViews, dumpUpdateParams, findDescendent, getParent, getViews, hasViews, removeView, setParent, shallowCopyView, updateChildren, updateChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectExprView

public SelectExprView(ResultSetProcessor resultSetProcessor)
Ctor.

Parameters:
resultSetProcessor - is processing the result set for publishing it out.
Method Detail

update

public void update(EventBean[] newData,
                   EventBean[] oldData)
The update method is called if the view does not participate in a join.

Specified by:
update in interface View
Parameters:
newData - - new events
oldData - - old events

process

public void process(java.util.Set<MultiKey<EventBean>> newEvents,
                    java.util.Set<MultiKey<EventBean>> oldEvents)
This process (update) method is for participation in a join.

Specified by:
process in interface JoinSetProcessor
Parameters:
newEvents - - new events
oldEvents - - old events

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

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.

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

attachesTo

public java.lang.String attachesTo(Viewable parentViewable)
Description copied from interface: View
Return null if the view will accept being attached to a particular object.

Specified by:
attachesTo in interface View
Parameters:
parentViewable - is the potential parent for this view
Returns:
null if this view can successfully attach to the parent, an error message if it cannot.