public static enum FlinkKafkaConsumer.FetcherType extends Enum<FlinkKafkaConsumer.FetcherType>
| Enum Constant and Description |
|---|
LEGACY_LOW_LEVEL
The legacy fetcher uses Kafka's old low-level consumer API.
|
NEW_HIGH_LEVEL
This fetcher uses a backport of the new consumer API to pull data from the Kafka broker.
|
| Modifier and Type | Method and Description |
|---|---|
static FlinkKafkaConsumer.FetcherType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FlinkKafkaConsumer.FetcherType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlinkKafkaConsumer.FetcherType LEGACY_LOW_LEVEL
Use this fetcher for Kafka 0.8.1 brokers.
public static final FlinkKafkaConsumer.FetcherType NEW_HIGH_LEVEL
This fetcher works only Kafka 0.8.2 and 0.8.3 (and future versions).
public static FlinkKafkaConsumer.FetcherType[] values()
for (FlinkKafkaConsumer.FetcherType c : FlinkKafkaConsumer.FetcherType.values()) System.out.println(c);
public static FlinkKafkaConsumer.FetcherType 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 © 2014–2016 The Apache Software Foundation. All rights reserved.