当前位置: 首页>>代码示例>>Java>>正文


Java VariableReadWritePackage类代码示例

本文整理汇总了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;
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:39,代码来源:OutputConditionPolledExpressionFactory.java

示例2: getVariableReadWritePackage

import com.espertech.esper.epl.variable.VariableReadWritePackage; //导入依赖的package包/类
public VariableReadWritePackage getVariableReadWritePackage() {
    return variableReadWritePackage;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:OutputConditionExpressionFactory.java

示例3: getVariableReadWritePackageAfterTerminated

import com.espertech.esper.epl.variable.VariableReadWritePackage; //导入依赖的package包/类
public VariableReadWritePackage getVariableReadWritePackageAfterTerminated() {
    return variableReadWritePackageAfterTerminated;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:OutputConditionExpressionFactory.java

示例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;
    }
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:50,代码来源:OutputConditionPolledExpression.java


注:本文中的com.espertech.esper.epl.variable.VariableReadWritePackage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。