storm.kafka.bolt.mapper
Class FieldNameBasedTupleToKafkaMapper<K,V>
java.lang.Object
storm.kafka.bolt.mapper.FieldNameBasedTupleToKafkaMapper<K,V>
- All Implemented Interfaces:
- Serializable, TupleToKafkaMapper
public class FieldNameBasedTupleToKafkaMapper<K,V>
- extends Object
- implements TupleToKafkaMapper
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOLT_KEY
public static final String BOLT_KEY
- See Also:
- Constant Field Values
BOLT_MESSAGE
public static final String BOLT_MESSAGE
- See Also:
- Constant Field Values
boltKeyField
public String boltKeyField
boltMessageField
public String boltMessageField
FieldNameBasedTupleToKafkaMapper
public FieldNameBasedTupleToKafkaMapper()
FieldNameBasedTupleToKafkaMapper
public FieldNameBasedTupleToKafkaMapper(String boltKeyField,
String boltMessageField)
getKeyFromTuple
public K getKeyFromTuple(Tuple tuple)
- Specified by:
getKeyFromTuple
in interface TupleToKafkaMapper
getMessageFromTuple
public V getMessageFromTuple(Tuple tuple)
- Specified by:
getMessageFromTuple
in interface TupleToKafkaMapper
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.