public EPStatementObjectModel MapRawToSODA(StatementSpecRaw raw) { StatementSpecUnMapResult unmapped = StatementSpecMapper.Unmap(raw); if (unmapped.SubstitutionParams.Count != 0) { throw new EPException(SUBS_PARAM_INVALID_USE); } return(unmapped.ObjectModel); }
public EPPreparedStatement PreparePattern(String patternExpression) { StatementSpecRaw rawPattern = EPAdministratorHelper.CompilePattern(patternExpression, patternExpression, true, _services, SelectClauseStreamSelectorEnum.ISTREAM_ONLY); // map to object model thus finding all substitution parameters and their indexes StatementSpecUnMapResult unmapped = StatementSpecMapper.Unmap(rawPattern); // the prepared statement is the object model plus a list of substitution parameters // map to specification will refuse any substitution parameters that are unfilled return(new EPPreparedStatementImpl(unmapped.ObjectModel, unmapped.SubstitutionParams, null)); }
public EPStatementObjectModel CompileEPL(String eplStatement) { StatementSpecRaw statementSpec = EPAdministratorHelper.CompileEPL(eplStatement, eplStatement, true, null, _services, _defaultStreamSelector); StatementSpecUnMapResult unmapped = StatementSpecMapper.Unmap(statementSpec); if (unmapped.SubstitutionParams.Count != 0) { throw new EPException(SUBS_PARAM_INVALID_USE); } return(unmapped.ObjectModel); }
public EPPreparedStatement PrepareEPL(String eplExpression) { // compile to specification StatementSpecRaw statementSpec = EPAdministratorHelper.CompileEPL(eplExpression, eplExpression, true, null, _services, _defaultStreamSelector); // map to object model thus finding all substitution parameters and their indexes StatementSpecUnMapResult unmapped = StatementSpecMapper.Unmap(statementSpec); // the prepared statement is the object model plus a list of substitution parameters // map to specification will refuse any substitution parameters that are unfilled return(new EPPreparedStatementImpl(unmapped.ObjectModel, unmapped.SubstitutionParams, eplExpression)); }