public class StatementSpecMapper
extends java.lang.Object
Constructor and Description |
---|
StatementSpecMapper() |
Modifier and Type | Method and Description |
---|---|
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)
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.
|
public static Expression unmap(ExprNode expression)
expression
- to unmappublic static PatternExpr unmap(EvalFactoryNode node)
node
- to unmappublic static AnnotationPart unmap(AnnotationDesc node)
node
- to unmappublic static MatchRecognizeRegEx unmap(RowRegexExprNode pattern)
pattern
- recognize pattern to unmappublic 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)
sodaStatement
- is the object model to mapengineImportService
- for resolving imports such as plug-in aggregationsvariableService
- provides variable valuesconfiguration
- supplies config valuespublic static StatementSpecUnMapResult unmap(StatementSpecRaw statementSpec)
statementSpec
- is the internal representationpublic static java.util.List<AnnotationDesc> mapAnnotations(java.util.List<AnnotationPart> annotations)