public class FieldIndexTopicSelector extends Object implements KafkaTopicSelector
Uses field with a given index to select the topic name from a tuple .
| Constructor and Description |
|---|
FieldIndexTopicSelector(int fieldIndex,
String defaultTopicName) |
public FieldIndexTopicSelector(int fieldIndex,
String defaultTopicName)
public String getTopic(Tuple tuple)
getTopic in interface KafkaTopicSelectorCopyright © 2018 The Apache Software Foundation. All Rights Reserved.