public class StringMessageMapper extends Object implements MqttMessageMapper
Given a String topic and byte[] message, emits a tuple with fields “topic” and “message”, both of which are Strings.
| Constructor and Description | 
|---|
| StringMessageMapper() | 
| Modifier and Type | Method and Description | 
|---|---|
| Fields | outputFields()Returns the list of output fields this Mapper produces. | 
| Values | toValues(MqttMessage message)Convert a  MqttMessageto a set of Values that can be emitted as a Storm Tuple. | 
public Values toValues(MqttMessage message)
MqttMessageMapperConvert a MqttMessage to a set of Values that can be emitted as a Storm Tuple.
toValues in interface MqttMessageMappermessage - An MQTT Message.public Fields outputFields()
MqttMessageMapperReturns the list of output fields this Mapper produces.
outputFields in interface MqttMessageMapperCopyright © 2019 The Apache Software Foundation. All Rights Reserved.