public class FieldNameBasedTupleToKafkaMapper<K,V> extends Object implements TupleToKafkaMapper<K,V>
| Modifier and Type | Field and Description |
|---|---|
static String |
BOLT_KEY |
static String |
BOLT_MESSAGE |
String |
boltKeyField |
String |
boltMessageField |
| Constructor and Description |
|---|
FieldNameBasedTupleToKafkaMapper() |
FieldNameBasedTupleToKafkaMapper(String boltKeyField,
String boltMessageField) |
| Modifier and Type | Method and Description |
|---|---|
K |
getKeyFromTuple(Tuple tuple) |
V |
getMessageFromTuple(Tuple tuple) |
public static final String BOLT_KEY
public static final String BOLT_MESSAGE
public String boltKeyField
public String boltMessageField
public K getKeyFromTuple(Tuple tuple)
getKeyFromTuple in interface TupleToKafkaMapper<K,V>public V getMessageFromTuple(Tuple tuple)
getMessageFromTuple in interface TupleToKafkaMapper<K,V>Copyright © 2021 The Apache Software Foundation. All rights reserved.