Github user twalthr commented on a diff in the pull request:
https://github.com/apache/flink/pull/3118#discussion_r97284915
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/CodeGenerator.scala
---
@@ -326,6 +346,52 @@ class CodeGenerator(
}
/**
+ * Generates a [[TableFunctionCollector]] that can be passed to Java
compiler.
+ *
+ * @param name Class name of the table function collector. Must not be
unique but has to be a
+ * valid Java class identifier.
+ * @param bodyCode body code for the collector method
+ * @param returnType The type information of the element collected by
the collector
+ * @return instance of GeneratedFunction
+ */
+ def generateTableFunctionCollector(
+ name: String,
+ bodyCode: String,
+ returnType: TypeInformation[Any])
+ : GeneratedFunction[TableFunctionCollector[Any]] = {
--- End diff --
I would introduce a new `GeneratedCollector` class as this is actually not
a Flink `Function`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---