com.espertech.esper.epl.spec
Class StatementSpecMapper

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

public class StatementSpecMapper
extends java.lang.Object

Helper for mapping internal representations of a statement to the SODA object model for statements.


Constructor Summary
StatementSpecMapper()
           
 
Method Summary
static StatementSpecRaw map(EPStatementObjectModel sodaStatement, EngineImportService engineImportService, VariableService variableService, ConfigurationInformation configuration, SchedulingService schedulingService, java.lang.String engineURI, PatternNodeFactory patternNodeFactory, NamedWindowService namedWindowService, ContextManagementService contextManagementService, ExprDeclaredService exprDeclaredService, TableService tableService)
          Maps the SODA object model to a statement specification.
static java.util.List<AnnotationDesc> mapAnnotations(java.util.List<AnnotationPart> annotations)
           
static AnnotationPart unmap(AnnotationDesc node)
          Unmap annotation.
static PatternExpr unmap(EvalFactoryNode node)
          Unmap pattern.
static Expression unmap(ExprNode expression)
          Unmap expresission.
static MatchRecognizeRegEx unmap(RowRegexExprNode pattern)
          Unmap match recognize pattern.
static StatementSpecUnMapResult unmap(StatementSpecRaw statementSpec)
          Maps the internal representation of a statement to the SODA object model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementSpecMapper

public StatementSpecMapper()
Method Detail

unmap

public static Expression unmap(ExprNode expression)
Unmap expresission.

Parameters:
expression - to unmap
Returns:
expression

unmap

public static PatternExpr unmap(EvalFactoryNode node)
Unmap pattern.

Parameters:
node - to unmap
Returns:
pattern

unmap

public static AnnotationPart unmap(AnnotationDesc node)
Unmap annotation.

Parameters:
node - to unmap
Returns:
annotation

unmap

public static MatchRecognizeRegEx unmap(RowRegexExprNode pattern)
Unmap match recognize pattern.

Parameters:
pattern - recognize pattern to unmap
Returns:
match recognize pattern

map

public static StatementSpecRaw map(EPStatementObjectModel sodaStatement,
                                   EngineImportService engineImportService,
                                   VariableService variableService,
                                   ConfigurationInformation configuration,
                                   SchedulingService schedulingService,
                                   java.lang.String engineURI,
                                   PatternNodeFactory patternNodeFactory,
                                   NamedWindowService namedWindowService,
                                   ContextManagementService contextManagementService,
                                   ExprDeclaredService exprDeclaredService,
                                   TableService tableService)
Maps the SODA object model to a statement specification.

Parameters:
sodaStatement - is the object model to map
engineImportService - for resolving imports such as plug-in aggregations
variableService - provides variable values
configuration - supplies config values
Returns:
statement specification, and internal representation of a statement

unmap

public static StatementSpecUnMapResult unmap(StatementSpecRaw statementSpec)
Maps the internal representation of a statement to the SODA object model.

Parameters:
statementSpec - is the internal representation
Returns:
object model of statement

mapAnnotations

public static java.util.List<AnnotationDesc> mapAnnotations(java.util.List<AnnotationPart> annotations)

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