com.espertech.esper.view
Interface ViewCapability

All Known Implementing Classes:
NotADataWindowViewCapability, RemoveStreamViewCapability, ViewCapDataWindowAccess, ViewCapPriorEventAccess

public interface ViewCapability

Interface for use by expression nodes to indicate view resource requirements allowing inspection and modification of view factories.


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.
 

Method Detail

inspect

boolean inspect(int streamNumber,
                List<ViewFactory> viewFactories,
                StatementContext statementContext)
                throws ExprValidationException
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.

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
Throws:
ExprValidationException - to indicate the inspect operation failed and a capability is not provided

requiresChildViews

boolean requiresChildViews()
Returns true to indicate that the capability requirs one or more child views, or can work without child views.

Returns:
true for child views required, false for not required

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