本文整理汇总了Java中com.espertech.esper.epl.enummethod.dot.ArrayWrappingCollection类的典型用法代码示例。如果您正苦于以下问题:Java ArrayWrappingCollection类的具体用法?Java ArrayWrappingCollection怎么用?Java ArrayWrappingCollection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ArrayWrappingCollection类属于com.espertech.esper.epl.enummethod.dot包,在下文中一共展示了ArrayWrappingCollection类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: evaluateGetROCollectionScalar
import com.espertech.esper.epl.enummethod.dot.ArrayWrappingCollection; //导入依赖的package包/类
public Collection evaluateGetROCollectionScalar(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) {
Object result = evaluate(eventsPerStream, isNewData, context);
if (result == null) {
return null;
}
return new ArrayWrappingCollection(result);
}
示例2: evaluateGetROCollectionScalarCodegen
import com.espertech.esper.epl.enummethod.dot.ArrayWrappingCollection; //导入依赖的package包/类
public CodegenExpression evaluateGetROCollectionScalarCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {
CodegenMethodNode methodNode = codegenMethodScope.makeChild(Collection.class, ExprNodeScriptEvalBase.class, codegenClassScope);
methodNode.getBlock()
.declareVar(Object.class, "result", evaluateCodegen(Collection.class, methodNode, exprSymbol, codegenClassScope))
.ifRefNullReturnNull("result")
.methodReturn(newInstance(ArrayWrappingCollection.class, ref("result")));
return localMethod(methodNode);
}
示例3: evaluateGetROCollectionScalar
import com.espertech.esper.epl.enummethod.dot.ArrayWrappingCollection; //导入依赖的package包/类
public Collection evaluateGetROCollectionScalar(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) {
Object result = super.aggregationResultFuture.getValue(column, context.getAgentInstanceId(), eventsPerStream, isNewData, context);
if (result == null) {
return null;
}
if (result.getClass().isArray()) {
return new ArrayWrappingCollection(result);
}
return (Collection) result;
}
示例4: evaluate
import com.espertech.esper.epl.enummethod.dot.ArrayWrappingCollection; //导入依赖的package包/类
@Override
public Object evaluate(Object target, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext) {
Object result = super.evaluate(target, eventsPerStream, isNewData, exprEvaluatorContext);
if (result == null || !result.getClass().isArray()) {
return null;
}
return new ArrayWrappingCollection(result);
}