com.espertech.esper.core.service
Interface StatementVariableRef

All Known Implementing Classes:
StatementVariableRefImpl

public interface StatementVariableRef

Service for maintaining references between statement name and variables.


Method Summary
 void addConfiguredVariable(java.lang.String variableName)
          Add a preconfigured variable.
 void addReferences(java.lang.String statementName, java.util.Set<java.lang.String> variablesReferenced, ExprTableAccessNode[] tableNodes)
          Add a reference from a statement name to a set of variables.
 void addReferences(java.lang.String statementName, java.lang.String variableReferenced)
          Add a reference from a statement name to a single variable.
 java.util.Set<java.lang.String> getStatementNamesForVar(java.lang.String variableName)
          Returns the set of statement names that use a given variable.
 boolean isInUse(java.lang.String variableName)
          Returns true if the variable is listed as in-use by any statement, or false if not
 void removeConfiguredVariable(java.lang.String variableName)
          Remove a preconfigured variable.
 void removeReferencesStatement(java.lang.String statementName)
          Remove all references for a given statement.
 void removeReferencesVariable(java.lang.String variableName)
          Remove all references for a given event type.
 

Method Detail

isInUse

boolean isInUse(java.lang.String variableName)
Returns true if the variable is listed as in-use by any statement, or false if not

Parameters:
variableName - name
Returns:
indicator whether variable is in use

getStatementNamesForVar

java.util.Set<java.lang.String> getStatementNamesForVar(java.lang.String variableName)
Returns the set of statement names that use a given variable.

Parameters:
variableName - name
Returns:
set of statements or null if none found

addReferences

void addReferences(java.lang.String statementName,
                   java.util.Set<java.lang.String> variablesReferenced,
                   ExprTableAccessNode[] tableNodes)
Add a reference from a statement name to a set of variables.

Parameters:
statementName - name of statement
variablesReferenced - types
tableNodes - table nodes, if any

addReferences

void addReferences(java.lang.String statementName,
                   java.lang.String variableReferenced)
Add a reference from a statement name to a single variable.

Parameters:
statementName - name of statement
variableReferenced - variable

removeReferencesStatement

void removeReferencesStatement(java.lang.String statementName)
Remove all references for a given statement.

Parameters:
statementName - statement name

removeReferencesVariable

void removeReferencesVariable(java.lang.String variableName)
Remove all references for a given event type.

Parameters:
variableName - variable name

addConfiguredVariable

void addConfiguredVariable(java.lang.String variableName)
Add a preconfigured variable.

Parameters:
variableName - name

removeConfiguredVariable

void removeConfiguredVariable(java.lang.String variableName)
Remove a preconfigured variable.

Parameters:
variableName - var

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