简体   繁体   English

SPL函数可以调用Submit()吗?

[英]Can an SPL function call submit()?

I'm trying to call submit() from an SPL function (that is called from a Custom operator), but it is not working. 我正在尝试从SPL函数(从Custom运算符调用)中调用Submit(),但是它不起作用。 It complains about the name of my stream: 它抱怨我的流的名称:

submit({prop1=value1, prop2=value2}, MyStream);

ERROR: An unknown identifier was referenced in the SPL program: MyStream 错误:SPL程序中引用了未知的标识符:MyStream

Is this supported? 支持吗?

No, this is not supported. 不,不支持。 submit() can only be called inside the Custom operator, within its onTuple , onPunct , or onProcess clauses. 只能在Custom运算符的onTupleonPunctonProcess子句中调用submit() It cannot be called from an SPL function. 不能从SPL函数调用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM