com.espertech.esper.epl.view
Class OutputProcessViewDirect

java.lang.Object
  extended by com.espertech.esper.epl.view.OutputProcessView
      extended by com.espertech.esper.epl.view.OutputProcessViewDirect
All Implemented Interfaces:
JoinSetIndicator, JoinSetProcessor, EventCollection, View, Viewable, Iterable<EventBean>

public class OutputProcessViewDirect
extends OutputProcessView

Output process view that does not enforce any output policies and may simply hand over events to child views.


Field Summary
 
Fields inherited from class com.espertech.esper.epl.view.OutputProcessView
childView, isGenerateSynthetic, outputStrategy, parentView, resultSetProcessor, statementResultService
 
Constructor Summary
OutputProcessViewDirect(ResultSetProcessor resultSetProcessor, OutputStrategy outputStrategy, boolean isInsertInto, StatementResultService statementResultService)
          Ctor.
 
Method Summary
 void process(Set<MultiKey<EventBean>> newEvents, 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 com.espertech.esper.epl.view.OutputProcessView
addView, getEventType, getParent, getViews, hasViews, iterator, removeView, setJoinExecutionStrategy, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputProcessViewDirect

public OutputProcessViewDirect(ResultSetProcessor resultSetProcessor,
                               OutputStrategy outputStrategy,
                               boolean isInsertInto,
                               StatementResultService statementResultService)
Ctor.

Parameters:
resultSetProcessor - is processing the result set for publishing it out
outputStrategy - is the execution of output to sub-views or natively
isInsertInto - is true if the statement is a insert-into
statementResultService - service for managing listener/subscribers and result generation needs
Method Detail

update

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

Parameters:
newData - - new events
oldData - - old events

process

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

Parameters:
newEvents - - new events
oldEvents - - old events

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