public static enum KafkaSpoutConfig.FirstPollOffsetStrategy extends Enum<KafkaSpoutConfig.FirstPollOffsetStrategy>
The offset used by the Kafka spout in the first poll to Kafka broker. The choice of this parameter will affect the number of consumer records returned in the first poll. By default this parameter is set to UNCOMMITTED_EARLIEST.
The allowed values are EARLIEST, LATEST, UNCOMMITTED_EARLIEST, UNCOMMITTED_LATEST.
Enum Constant and Description |
---|
EARLIEST |
LATEST |
UNCOMMITTED_EARLIEST |
UNCOMMITTED_LATEST |
Modifier and Type | Method and Description |
---|---|
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 nullCopyright © 2016 The Apache Software Foundation. All Rights Reserved.