com.espertech.esper.view
Class ViewFactoryContext

java.lang.Object
  extended by com.espertech.esper.view.ViewFactoryContext

public class ViewFactoryContext
extends java.lang.Object

Context calss for specific views within a statement. Each view in a statement gets it's own context containing the statement context.


Constructor Summary
ViewFactoryContext(StatementContext statementContext, int streamNum, java.lang.String namespaceName, java.lang.String viewName, boolean isSubquery, int subqueryNumber, boolean isGrouped)
          Ctor.
 
Method Summary
 EPStatementHandle getEpStatementHandle()
          Returns the statement's resource locks.
 EventAdapterService getEventAdapterService()
          Returns service for generating events and handling event types.
 java.lang.String getNamespaceName()
          Returns the view namespace name.
 ScheduleBucket getScheduleBucket()
          Returns the schedule bucket for ordering schedule callbacks within this pattern.
 SchedulingService getSchedulingService()
          Returns service to use for schedule evaluation.
 StatementContext getStatementContext()
          Returns the statement context.
 StatementExtensionSvcContext getStatementExtensionServicesContext()
          Returns extension svc.
 int getStatementId()
          Returns the statement id.
 int getStreamNum()
          Returns the stream number.
 int getSubqueryNumber()
           
 java.lang.String getViewName()
          Returns the view name.
 boolean isGrouped()
           
 boolean isSubquery()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewFactoryContext

public ViewFactoryContext(StatementContext statementContext,
                          int streamNum,
                          java.lang.String namespaceName,
                          java.lang.String viewName,
                          boolean isSubquery,
                          int subqueryNumber,
                          boolean isGrouped)
Ctor.

Parameters:
statementContext - is the statement-level services
streamNum - is the stream number from zero to N
namespaceName - is the view namespace
viewName - is the view name
Method Detail

getSchedulingService

public final SchedulingService getSchedulingService()
Returns service to use for schedule evaluation.

Returns:
schedule evaluation service implemetation

getEventAdapterService

public EventAdapterService getEventAdapterService()
Returns service for generating events and handling event types.

Returns:
event adapter service

getScheduleBucket

public ScheduleBucket getScheduleBucket()
Returns the schedule bucket for ordering schedule callbacks within this pattern.

Returns:
schedule bucket

getEpStatementHandle

public EPStatementHandle getEpStatementHandle()
Returns the statement's resource locks.

Returns:
statement resource lock/handle

getStatementExtensionServicesContext

public StatementExtensionSvcContext getStatementExtensionServicesContext()
Returns extension svc.

Returns:
svc

getStatementId

public int getStatementId()
Returns the statement id.

Returns:
statement id

getStreamNum

public int getStreamNum()
Returns the stream number.

Returns:
stream number

getNamespaceName

public java.lang.String getNamespaceName()
Returns the view namespace name.

Returns:
namespace name

getViewName

public java.lang.String getViewName()
Returns the view name.

Returns:
view name

getStatementContext

public StatementContext getStatementContext()
Returns the statement context.

Returns:
statement context

isSubquery

public boolean isSubquery()

getSubqueryNumber

public int getSubqueryNumber()

isGrouped

public boolean isGrouped()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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