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