public class SimpleOutputFormatter extends Object implements OutputFormatter
OutputFormatter
implementation to convert Tuples
with a size of 1 by returning the
result of Object.toString()
for the first field.Constructor and Description |
---|
SimpleOutputFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
format(org.apache.storm.tuple.Tuple input)
Converts a Storm
Tuple with 1 field to a string by retrieving the value of that field. |
public String format(org.apache.storm.tuple.Tuple input)
Tuple
with 1 field to a string by retrieving the value of that field. This method is
used for formatting raw outputs wrapped in tuples, before writing them out to a file or to the console.format
in interface OutputFormatter
input
- The tuple to be formattedCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.