本文整理汇总了Java中com.espertech.esper.epl.variable.VariableReadWritePackage类的典型用法代码示例。如果您正苦于以下问题:Java VariableReadWritePackage类的具体用法?Java VariableReadWritePackage怎么用?Java VariableReadWritePackage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
VariableReadWritePackage类属于com.espertech.esper.epl.variable包,在下文中一共展示了VariableReadWritePackage类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: OutputConditionPolledExpressionFactory
import com.espertech.esper.epl.variable.VariableReadWritePackage; //导入依赖的package包/类
/**
* Ctor.
*
* @param whenExpressionNode the expression to evaluate, returning true when to output
* @param assignments is the optional then-clause variable assignments, or null or empty if none
* @param statementContext context
* @throws ExprValidationException when validation fails
*/
public OutputConditionPolledExpressionFactory(ExprNode whenExpressionNode, List<OnTriggerSetAssignment> assignments, StatementContext statementContext)
throws ExprValidationException {
this.whenExpressionNode = ExprNodeCompiler.allocateEvaluator(whenExpressionNode.getForge(), statementContext.getEngineImportService(), this.getClass(), false, statementContext.getStatementName());
// determine if using properties
boolean containsBuiltinProperties = false;
if (containsBuiltinProperties(whenExpressionNode)) {
containsBuiltinProperties = true;
} else {
if (assignments != null) {
for (OnTriggerSetAssignment assignment : assignments) {
if (containsBuiltinProperties(assignment.getExpression())) {
containsBuiltinProperties = true;
}
}
}
}
if (containsBuiltinProperties) {
oatypeBuiltinProperties = statementContext.getEventAdapterService().createAnonymousObjectArrayType(OutputConditionPolledExpressionFactory.class.getName(), OutputConditionExpressionTypeUtil.TYPEINFO);
} else {
oatypeBuiltinProperties = null;
}
if (assignments != null) {
variableReadWritePackage = new VariableReadWritePackage(assignments, statementContext.getVariableService(), statementContext.getEventAdapterService(), statementContext.getStatementName());
} else {
variableReadWritePackage = null;
}
}
示例2: getVariableReadWritePackage
import com.espertech.esper.epl.variable.VariableReadWritePackage; //导入依赖的package包/类
public VariableReadWritePackage getVariableReadWritePackage() {
return variableReadWritePackage;
}
示例3: getVariableReadWritePackageAfterTerminated
import com.espertech.esper.epl.variable.VariableReadWritePackage; //导入依赖的package包/类
public VariableReadWritePackage getVariableReadWritePackageAfterTerminated() {
return variableReadWritePackageAfterTerminated;
}
示例4: OutputConditionPolledExpression
import com.espertech.esper.epl.variable.VariableReadWritePackage; //导入依赖的package包/类
/**
* Ctor.
* @param whenExpressionNode the expression to evaluate, returning true when to output
* @param assignments is the optional then-clause variable assignments, or null or empty if none
* @throws com.espertech.esper.epl.expression.ExprValidationException when validation fails
*/
public OutputConditionPolledExpression(ExprNode whenExpressionNode, List<OnTriggerSetAssignment> assignments, AgentInstanceContext agentInstanceContext)
throws ExprValidationException
{
this.whenExpressionNode = whenExpressionNode.getExprEvaluator();
this.agentInstanceContext = agentInstanceContext;
this.eventsPerStream = new EventBean[1];
// determine if using properties
boolean containsBuiltinProperties = false;
if (containsBuiltinProperties(whenExpressionNode))
{
containsBuiltinProperties = true;
}
else
{
if (assignments != null)
{
for (OnTriggerSetAssignment assignment : assignments)
{
if (containsBuiltinProperties(assignment.getExpression()))
{
containsBuiltinProperties = true;
}
}
}
}
if (containsBuiltinProperties)
{
builtinProperties = new HashMap<String, Object>();
builtinPropertiesEventType = getBuiltInEventType(agentInstanceContext.getStatementContext().getEventAdapterService());
lastOutputTimestamp = agentInstanceContext.getStatementContext().getSchedulingService().getTime();
}
if (assignments != null)
{
variableReadWritePackage = new VariableReadWritePackage(assignments, agentInstanceContext.getStatementContext().getVariableService(), agentInstanceContext.getStatementContext().getEventAdapterService());
}
else
{
variableReadWritePackage = null;
}
}