org.apache.storm.kafka.bolt.selector

## Class FieldNameTopicSelector

- java.lang.Object
- - org.apache.storm.kafka.bolt.selector.FieldNameTopicSelector

- All Implemented Interfaces:
    Serializable, KafkaTopicSelector

      public class FieldNameTopicSelector
      extends Object
      implements KafkaTopicSelector

  Uses field name to select topic name from tuple .

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FieldNameTopicSelector(String fieldName, String defaultTopicName)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getTopic(Tuple tuple)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FieldNameTopicSelector

          public FieldNameTopicSelector(String fieldName,
                                        String defaultTopicName)

  - ### Method Detail

    - #### getTopic

          public String getTopic(Tuple tuple)

      Specified by:
        `getTopic` in interface `KafkaTopicSelector`

Copyright © 2021 The Apache Software Foundation. All rights reserved.