Class FieldNameBasedTupleToKafkaMapper<K,V>
java.lang.Object
org.apache.storm.kafka.trident.mapper.FieldNameBasedTupleToKafkaMapper<K,V>
- All Implemented Interfaces:
Serializable
,TridentTupleToKafkaMapper
public class FieldNameBasedTupleToKafkaMapper<K,V>
extends Object
implements TridentTupleToKafkaMapper
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKeyFromTuple
(TridentTuple tuple) getMessageFromTuple
(TridentTuple tuple)
-
Field Details
-
keyFieldName
-
msgFieldName
-
-
Constructor Details
-
FieldNameBasedTupleToKafkaMapper
-
-
Method Details
-
getKeyFromTuple
- Specified by:
getKeyFromTuple
in interfaceTridentTupleToKafkaMapper<K,
V>
-
getMessageFromTuple
- Specified by:
getMessageFromTuple
in interfaceTridentTupleToKafkaMapper<K,
V>
-