本文整理匯總了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);
}