public class FieldIndexTopicSelector extends Object implements KafkaTopicSelector
Constructor and Description |
---|
FieldIndexTopicSelector(int fieldIndex,
String defaultTopicName)
Creates a new FieldIndexTopicSelector.
|
public FieldIndexTopicSelector(int fieldIndex, String defaultTopicName)
fieldIndex
- The index of the field containing the topic namedefaultTopicName
- The default topic name if the topic name cannot be read from the tuplepublic String getTopic(Tuple tuple)
getTopic
in interface KafkaTopicSelector
Copyright © 2023 The Apache Software Foundation. All rights reserved.