Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/5056#discussion_r152763593
--- Diff:
flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/KafkaTableSource.java
---
@@ -309,6 +356,51 @@ public B withKafkaTimestampAsRowtimeAttribute(
return builder();
}
+ /**
+ * Configures the TableSource to start reading from the
earliest offset for all partitions.
+ *
+ * @see FlinkKafkaConsumerBase#setStartFromEarliest()
+ */
+ public B startReadingFromEarliest() {
+ this.startupMode = StartupMode.EARLIEST;
+ this.specificStartupOffsets = null;
+ return builder();
+ }
+
+ /**
+ * Configures the TableSource to start reading from the latest
offset for all partitions.
+ *
+ * @see FlinkKafkaConsumerBase#setStartFromLatest()
+ */
+ public B startReadingFromLatest() {
--- End diff --
shorten to `fromLatestOffsets`?
---