com.espertech.esper.epl.spec
Class StatementSpecMapContext

java.lang.Object
  extended by com.espertech.esper.epl.spec.StatementSpecMapContext

public class StatementSpecMapContext
extends java.lang.Object

Context for mapping a SODA statement to a statement specification, or multiple for subqueries, and obtaining certain optimization information from a statement.


Constructor Summary
StatementSpecMapContext(EngineImportService engineImportService, VariableService variableService, ConfigurationInformation configuration, SchedulingService schedulingService, java.lang.String engineURI, PatternNodeFactory patternNodeFactory, NamedWindowService namedWindowService, ContextManagementService contextManagementService, ExprDeclaredService exprDeclaredService, ContextDescriptor contextDescriptor, TableService tableService)
          Ctor.
 
Method Summary
 void addExpressionDeclarations(ExpressionDeclItem item)
           
 void addScript(ExpressionScriptProvided item)
           
 ConfigurationInformation getConfiguration()
          Returns the configuration.
 ContextDescriptor getContextDescriptor()
           
 ContextManagementService getContextManagementService()
           
 java.lang.String getContextName()
           
 EngineImportService getEngineImportService()
          Returns the engine import service.
 java.lang.String getEngineURI()
           
 ExprDeclaredService getExprDeclaredService()
           
 java.util.Map<java.lang.String,ExpressionDeclItem> getExpressionDeclarations()
           
 NamedWindowService getNamedWindowService()
           
 PatternNodeFactory getPatternNodeFactory()
           
 LazyAllocatedMap<ConfigurationPlugInAggregationMultiFunction,PlugInAggregationMultiFunctionFactory> getPlugInAggregations()
           
 SchedulingService getSchedulingService()
           
 java.util.Map<java.lang.String,ExpressionScriptProvided> getScripts()
           
 java.util.List<ExprTableAccessNode> getTableExpressions()
           
 TableService getTableService()
           
 java.util.Set<java.lang.String> getVariableNames()
          Returns variables.
 VariableService getVariableService()
          Returns the variable service.
 boolean isHasVariables()
          Returns true if a statement has variables.
 void setContextName(java.lang.String contextName)
           
 void setHasVariables(boolean hasVariables)
          Set to true to indicate that a statement has variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementSpecMapContext

public StatementSpecMapContext(EngineImportService engineImportService,
                               VariableService variableService,
                               ConfigurationInformation configuration,
                               SchedulingService schedulingService,
                               java.lang.String engineURI,
                               PatternNodeFactory patternNodeFactory,
                               NamedWindowService namedWindowService,
                               ContextManagementService contextManagementService,
                               ExprDeclaredService exprDeclaredService,
                               ContextDescriptor contextDescriptor,
                               TableService tableService)
Ctor.

Parameters:
engineImportService - engine imports
variableService - variable names
configuration - the configuration
contextDescriptor - optional context description
Method Detail

getEngineImportService

public EngineImportService getEngineImportService()
Returns the engine import service.

Returns:
service

getVariableService

public VariableService getVariableService()
Returns the variable service.

Returns:
service

isHasVariables

public boolean isHasVariables()
Returns true if a statement has variables.

Returns:
true for variables found

setHasVariables

public void setHasVariables(boolean hasVariables)
Set to true to indicate that a statement has variables.

Parameters:
hasVariables - true for variables, false for none

getConfiguration

public ConfigurationInformation getConfiguration()
Returns the configuration.

Returns:
config

getVariableNames

public java.util.Set<java.lang.String> getVariableNames()
Returns variables.

Returns:
variables

getSchedulingService

public SchedulingService getSchedulingService()

getEngineURI

public java.lang.String getEngineURI()

getPatternNodeFactory

public PatternNodeFactory getPatternNodeFactory()

getNamedWindowService

public NamedWindowService getNamedWindowService()

getExpressionDeclarations

public java.util.Map<java.lang.String,ExpressionDeclItem> getExpressionDeclarations()

addExpressionDeclarations

public void addExpressionDeclarations(ExpressionDeclItem item)

getScripts

public java.util.Map<java.lang.String,ExpressionScriptProvided> getScripts()

addScript

public void addScript(ExpressionScriptProvided item)

getContextManagementService

public ContextManagementService getContextManagementService()

getContextName

public java.lang.String getContextName()

setContextName

public void setContextName(java.lang.String contextName)

getExprDeclaredService

public ExprDeclaredService getExprDeclaredService()

getPlugInAggregations

public LazyAllocatedMap<ConfigurationPlugInAggregationMultiFunction,PlugInAggregationMultiFunctionFactory> getPlugInAggregations()

getContextDescriptor

public ContextDescriptor getContextDescriptor()

getTableService

public TableService getTableService()

getTableExpressions

public java.util.List<ExprTableAccessNode> getTableExpressions()

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