本文介绍了ExecuteSQL 和 ExecuteSQLRecord 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解两个处理器 ExecuteSQLExecuteSQLRecord(V1.8 及更高版本)之间的区别.是否有其他东西是后者提供的而 ExecuteSQL 没有的?我已经看到的一件事是 ExecuteSQL 不维护状态".ExecuteSQLRecord 会处理它吗?

I am trying to understand the difference between the two processors ExecuteSQL and ExecuteSQLRecord (V1.8 onwards). Is there something extra which the later provides and ExecuteSQL doesn't? One thing I have already seen is that ExecuteSQL doesn't mantain "state". Does ExecuteSQLRecord take care of it?

推荐答案

两个处理器共享大量代码,唯一真正的区别是 ExecuteSQL 只将结果输出为 Avro,而 ExecuteSQLRecord 可以使用任何 RecordSetWriter 将结果输出到其关联格式,如Avro、JSON、CSV、XML等

The two processors share a LOT of code, the only real difference is that ExecuteSQL only outputs the results as Avro, whereas ExecuteSQLRecord can output the results using any RecordSetWriter into its associated format, such as Avro, JSON, CSV, XML, etc.

这篇关于ExecuteSQL 和 ExecuteSQLRecord 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 00:42