public class FieldNameBasedTupleToKafkaMapper<K,V> extends Object implements TridentTupleToKafkaMapper
Modifier and Type | Field and Description |
---|---|
String |
keyFieldName |
String |
msgFieldName |
Constructor and Description |
---|
FieldNameBasedTupleToKafkaMapper(String keyFieldName,
String msgFieldName) |
Modifier and Type | Method and Description |
---|---|
K |
getKeyFromTuple(TridentTuple tuple) |
V |
getMessageFromTuple(TridentTuple tuple) |
public final String keyFieldName
public final String msgFieldName
public K getKeyFromTuple(TridentTuple tuple)
getKeyFromTuple
in interface TridentTupleToKafkaMapper
public V getMessageFromTuple(TridentTuple tuple)
getMessageFromTuple
in interface TridentTupleToKafkaMapper
Copyright © 2022 The Apache Software Foundation. All rights reserved.