net.esper.eql.named
Class RemoveStreamViewCapability

java.lang.Object
  extended by net.esper.eql.named.RemoveStreamViewCapability
All Implemented Interfaces:
ViewCapability

public class RemoveStreamViewCapability
extends Object
implements ViewCapability

View capability requirement that asks views to handle the remove stream posted by parent views, for use with named windows since these allow on-delete removal of events from a window.

Based on being asked to provide the capability, a view factory may need to use a view with a different internal collection to provide a remove stream capability that has good performance, but may come at the cost of lower insert performance as a view may need to build reverse indexes to effeciently remove an event.


Constructor Summary
RemoveStreamViewCapability()
           
 
Method Summary
 boolean inspect(int streamNumber, List<ViewFactory> viewFactories, StatementContext statementContext)
          Inspect view factories returning false to indicate that view factories do not meet view resource requirements, or true to indicate view capability and view factories can be compatible.
 boolean requiresChildViews()
          Returns true to indicate that the capability requirs one or more child views, or can work without child views.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveStreamViewCapability

public RemoveStreamViewCapability()
Method Detail

inspect

public boolean inspect(int streamNumber,
                       List<ViewFactory> viewFactories,
                       StatementContext statementContext)
Description copied from interface: ViewCapability
Inspect view factories returning false to indicate that view factories do not meet view resource requirements, or true to indicate view capability and view factories can be compatible.

Specified by:
inspect in interface ViewCapability
Parameters:
streamNumber - is the number of the stream
viewFactories - is a list of view factories that originate the final views
statementContext - is the statement-level services
Returns:
true to indicate inspection success, or false to indicate inspection failure

requiresChildViews

public boolean requiresChildViews()
Description copied from interface: ViewCapability
Returns true to indicate that the capability requirs one or more child views, or can work without child views.

Specified by:
requiresChildViews in interface ViewCapability
Returns:
true for child views required, false for not required

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