net.esper.eql.spec
Class StatementSpecMapper
java.lang.Object
net.esper.eql.spec.StatementSpecMapper
public class StatementSpecMapper
- extends Object
Helper for mapping internal representations of a statement to the SODA object model for statements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatementSpecMapper
public StatementSpecMapper()
map
public static StatementSpecRaw map(EPStatementObjectModel sodaStatement,
EngineImportService engineImportService)
- Maps the SODA object model to a statement specification.
- Parameters:
sodaStatement
- is the object model to mapengineImportService
- for resolving imports such as plug-in aggregations
- 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