Java Code Examples for org.apache.flink.streaming.connectors.kafka.config.StartupMode#LATEST

The following examples show how to use org.apache.flink.streaming.connectors.kafka.config.StartupMode#LATEST . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Kafka.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
/**
 * Configures to start reading from the latest offset for all partitions.
 *
 * @see FlinkKafkaConsumerBase#setStartFromLatest()
 */
public Kafka startFromLatest() {
	this.startupMode = StartupMode.LATEST;
	this.specificOffsets = null;
	return this;
}
 
Example 2
Source File: Kafka.java    From flink with Apache License 2.0 4 votes vote down vote up
/**
 * Configures to start reading from the latest offset for all partitions.
 *
 * @see FlinkKafkaConsumerBase#setStartFromLatest()
 */
public Kafka startFromLatest() {
	this.startupMode = StartupMode.LATEST;
	this.specificOffsets = null;
	return this;
}
 
Example 3
Source File: Kafka.java    From flink with Apache License 2.0 4 votes vote down vote up
/**
 * Configures to start reading from the latest offset for all partitions.
 *
 * @see FlinkKafkaConsumerBase#setStartFromLatest()
 */
public Kafka startFromLatest() {
	this.startupMode = StartupMode.LATEST;
	this.specificOffsets = null;
	return this;
}
 
Example 4
Source File: FlinkKafkaConsumerBase.java    From Flink-CEPplus with Apache License 2.0 3 votes vote down vote up
/**
 * Specifies the consumer to start reading from the latest offset for all partitions.
 * This lets the consumer ignore any committed group offsets in Zookeeper / Kafka brokers.
 *
 * <p>This method does not affect where partitions are read from when the consumer is restored
 * from a checkpoint or savepoint. When the consumer is restored from a checkpoint or
 * savepoint, only the offsets in the restored state will be used.
 *
 * @return The consumer object, to allow function chaining.
 */
public FlinkKafkaConsumerBase<T> setStartFromLatest() {
	this.startupMode = StartupMode.LATEST;
	this.startupOffsetsTimestamp = null;
	this.specificStartupOffsets = null;
	return this;
}
 
Example 5
Source File: FlinkKafkaConsumerBase.java    From flink with Apache License 2.0 3 votes vote down vote up
/**
 * Specifies the consumer to start reading from the latest offset for all partitions.
 * This lets the consumer ignore any committed group offsets in Zookeeper / Kafka brokers.
 *
 * <p>This method does not affect where partitions are read from when the consumer is restored
 * from a checkpoint or savepoint. When the consumer is restored from a checkpoint or
 * savepoint, only the offsets in the restored state will be used.
 *
 * @return The consumer object, to allow function chaining.
 */
public FlinkKafkaConsumerBase<T> setStartFromLatest() {
	this.startupMode = StartupMode.LATEST;
	this.startupOffsetsTimestamp = null;
	this.specificStartupOffsets = null;
	return this;
}
 
Example 6
Source File: FlinkKafkaConsumerBase.java    From flink with Apache License 2.0 3 votes vote down vote up
/**
 * Specifies the consumer to start reading from the latest offset for all partitions.
 * This lets the consumer ignore any committed group offsets in Zookeeper / Kafka brokers.
 *
 * <p>This method does not affect where partitions are read from when the consumer is restored
 * from a checkpoint or savepoint. When the consumer is restored from a checkpoint or
 * savepoint, only the offsets in the restored state will be used.
 *
 * @return The consumer object, to allow function chaining.
 */
public FlinkKafkaConsumerBase<T> setStartFromLatest() {
	this.startupMode = StartupMode.LATEST;
	this.startupOffsetsTimestamp = null;
	this.specificStartupOffsets = null;
	return this;
}