storm.kafka.trident.mapper
Class FieldNameBasedTupleToKafkaMapper<K,V>
java.lang.Object
storm.kafka.trident.mapper.FieldNameBasedTupleToKafkaMapper<K,V>
- All Implemented Interfaces:
- Serializable, TridentTupleToKafkaMapper
public class FieldNameBasedTupleToKafkaMapper<K,V>
- extends Object
- implements TridentTupleToKafkaMapper
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keyFieldName
public final String keyFieldName
msgFieldName
public final String msgFieldName
FieldNameBasedTupleToKafkaMapper
public FieldNameBasedTupleToKafkaMapper(String keyFieldName,
String msgFieldName)
getKeyFromTuple
public K getKeyFromTuple(TridentTuple tuple)
- Specified by:
getKeyFromTuple
in interface TridentTupleToKafkaMapper
getMessageFromTuple
public V getMessageFromTuple(TridentTuple tuple)
- Specified by:
getMessageFromTuple
in interface TridentTupleToKafkaMapper
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.