return new ObjectArrayEventBean(event, OAEXPRESSIONTYPE);
}
public static ExprEvaluator toExpression(String hint, StatementContext statementContext) throws ExprValidationException {
String toCompile = "select * from java.lang.Object.win:time(" + hint + ")";
StatementSpecRaw raw = EPAdministratorHelper.compileEPL(toCompile, hint, false, null,
SelectClauseStreamSelectorEnum.ISTREAM_ONLY, statementContext.getMethodResolutionService().getEngineImportService(),
statementContext.getVariableService(), statementContext.getSchedulingService(),
statementContext.getEngineURI(), statementContext.getConfigSnapshot(),
new PatternNodeFactoryImpl(), new ContextManagementServiceImpl(),
new ExprDeclaredServiceImpl());
ExprNode expr = raw.getStreamSpecs().get(0).getViewSpecs()[0].getObjectParameters().get(0);
ExprNode validated = ExprNodeUtility.validateSimpleGetSubtree(ExprNodeOrigin.HINT, expr, statementContext, OAEXPRESSIONTYPE);
return validated.getExprEvaluator();
}