com.espertech.esper.epl.view
Class OutputProcessViewBase

java.lang.Object
  extended by com.espertech.esper.epl.view.OutputProcessViewBase
All Implemented Interfaces:
JoinSetIndicator, JoinSetProcessor, OutputProcessViewTerminable, EventCollection, View, Viewable, java.lang.Iterable<EventBean>
Direct Known Subclasses:
OutputProcessViewBaseCallback, OutputProcessViewBaseWAfter, OutputProcessViewDirect

public abstract class OutputProcessViewBase
extends java.lang.Object
implements View, JoinSetIndicator, OutputProcessViewTerminable


Field Summary
protected  UpdateDispatchView childView
           
protected  JoinExecutionStrategy joinExecutionStrategy
           
protected  Viewable parentView
           
protected  ResultSetProcessor resultSetProcessor
           
 
Constructor Summary
protected OutputProcessViewBase(ResultSetProcessor resultSetProcessor)
           
 
Method Summary
 View addView(View view)
          Add a view to the viewable object.
 EventType getEventType()
          Provides metadata information about the type of object the event collection contains.
 Viewable getParent()
          Returns the View's parent Viewable.
 View[] getViews()
          Returns all added views.
 boolean hasViews()
          Test is there are any views to the Viewable.
 void removeAllViews()
          Remove all views.
 boolean removeView(View view)
          Remove a view.
 void setJoinExecutionStrategy(JoinExecutionStrategy joinExecutionStrategy)
          For joins, supplies the join execution strategy that provides iteration over statement results.
 void setParent(Viewable parent)
          Called when the View is added to a Viewable object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.view.View
update
 
Methods inherited from interface com.espertech.esper.view.EventCollection
iterator
 
Methods inherited from interface com.espertech.esper.epl.join.base.JoinSetProcessor
process
 
Methods inherited from interface com.espertech.esper.epl.view.OutputProcessViewTerminable
terminated
 

Field Detail

resultSetProcessor

protected final ResultSetProcessor resultSetProcessor

joinExecutionStrategy

protected JoinExecutionStrategy joinExecutionStrategy

childView

protected UpdateDispatchView childView

parentView

protected Viewable parentView
Constructor Detail

OutputProcessViewBase

protected OutputProcessViewBase(ResultSetProcessor resultSetProcessor)
Method Detail

getParent

public Viewable getParent()
Description copied from interface: View
Returns the View's parent Viewable.

Specified by:
getParent in interface View
Returns:
viewable

setParent

public void setParent(Viewable parent)
Description copied from interface: View
Called when the View is added to a Viewable object.

Specified by:
setParent in interface View
Parameters:
parent - is the parent that this view is a child of

addView

public View addView(View view)
Description copied from interface: Viewable
Add a view to the viewable object.

Specified by:
addView in interface Viewable
Parameters:
view - to add
Returns:
view to add

getViews

public View[] getViews()
Description copied from interface: Viewable
Returns all added views.

Specified by:
getViews in interface Viewable
Returns:
list of added views

removeAllViews

public void removeAllViews()
Description copied from interface: Viewable
Remove all views.

Specified by:
removeAllViews in interface Viewable

removeView

public boolean removeView(View view)
Description copied from interface: Viewable
Remove a view.

Specified by:
removeView in interface Viewable
Parameters:
view - to remove
Returns:
true to indicate that the view to be removed existed within this view, false if the view to remove could not be found

hasViews

public boolean hasViews()
Description copied from interface: Viewable
Test is there are any views to the Viewable.

Specified by:
hasViews in interface Viewable
Returns:
true indicating there are child views, false indicating there are no child views

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

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