zjureel commented on code in PR #418:
URL: https://github.com/apache/flink-table-store/pull/418#discussion_r1038979666
##########
flink-table-store-core/src/main/java/org/apache/flink/table/store/file/utils/RecordReaderUtils.java:
##########
@@ -44,4 +45,49 @@ public static <T> void forEachRemaining(
reader.close();
}
}
+
+ /**
+ * Returns a {@link RecordReader} that applies {@code function} to each
element of {@code
+ * fromReader}.
+ */
+ public static <L, R> RecordReader<R> transform(
+ RecordReader<L> fromReader, Function<L, R> function) {
+ return new RecordReader<R>() {
+ @Override
+ public RecordIterator<R> readBatch() throws IOException {
Review Comment:
Add @Nullable?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]