net.esper.eql.spec
Class StatementSpecMapper

java.lang.Object
  extended by 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.


Constructor Summary
StatementSpecMapper()
           
 
Method Summary
static StatementSpecRaw map(EPStatementObjectModel sodaStatement, EngineImportService engineImportService)
          Maps the SODA object model to a statement specification.
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

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 map
engineImportService - 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