public class FieldNameBasedTopicSelector extends Object implements TopicSelector
Uses field name to select topic and tag name from tuple.
Constructor and Description |
---|
FieldNameBasedTopicSelector(String topicFieldName,
String defaultTopicName,
String tagFieldName,
String defaultTagName)
FieldNameBasedTopicSelector Constructor.
|
public FieldNameBasedTopicSelector(String topicFieldName, String defaultTopicName, String tagFieldName, String defaultTagName)
FieldNameBasedTopicSelector Constructor.
topicFieldName
- field name used for selecting topicdefaultTopicName
- default field name used for selecting topictagFieldName
- field name used for selecting tagdefaultTagName
- default field name used for selecting tagpublic String getTopic(ITuple tuple)
getTopic
in interface TopicSelector
public String getTag(ITuple tuple)
getTag
in interface TopicSelector
Copyright © 2019 The Apache Software Foundation. All rights reserved.