Flink是否具有Spark中的速率源?

huangapple go评论57阅读模式
英文:

Does Flink have the rate source that Spark has?

问题

在Spark中有一个名为“rate source”的功能,用于进行测试。

因此,您可以执行以下操作:

val df = spark.readStream
  .format("rate")
  .option("rowsPerSecond", 10)
  .load()

它会生成用于测试的无限流记录。Flink是否有类似的功能?

英文:

In Spark there's the rate source, which is used for testing.

So, you do:

val df = spark.readStream
  .format("rate")
  .option("rowsPerSecond", 10)
  .load()

And it produces an unbounded stream of records for testing. Does Flink have anything similar?

答案1

得分: 1

看起来它具有Table API的DataGen连接器:

https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/table/datagen/

https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/common/

英文:

Looks like it has the DataGen connector for the Table API:

https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/table/datagen/

https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/common/

huangapple
  • 本文由 发表于 2023年7月3日 04:19:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76600632.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定