public static enum KafkaSpoutConfig.FirstPollOffsetStrategy extends Enum<KafkaSpoutConfig.FirstPollOffsetStrategy>
Defines how the KafkaSpout
seeks the offset to be used in the first poll to Kafka upon topology deployment. By default this parameter is set to UNCOMMITTED_EARLIEST.
Enum Constant and Description |
---|
EARLIEST
The kafka spout polls records starting in the first offset of the partition, regardless of previous commits.
|
LATEST
The kafka spout polls records with offsets greater than the last offset in the partition, regardless of previous commits.
|
UNCOMMITTED_EARLIEST
The kafka spout polls records from the last committed offset, if any.
|
UNCOMMITTED_LATEST
The kafka spout polls records from the last committed offset, if any.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static KafkaSpoutConfig.FirstPollOffsetStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KafkaSpoutConfig.FirstPollOffsetStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KafkaSpoutConfig.FirstPollOffsetStrategy EARLIEST
public static final KafkaSpoutConfig.FirstPollOffsetStrategy LATEST
public static final KafkaSpoutConfig.FirstPollOffsetStrategy UNCOMMITTED_EARLIEST
public static final KafkaSpoutConfig.FirstPollOffsetStrategy UNCOMMITTED_LATEST
public static KafkaSpoutConfig.FirstPollOffsetStrategy[] values()
for (KafkaSpoutConfig.FirstPollOffsetStrategy c : KafkaSpoutConfig.FirstPollOffsetStrategy.values()) System.out.println(c);
public static KafkaSpoutConfig.FirstPollOffsetStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<KafkaSpoutConfig.FirstPollOffsetStrategy>
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.