Package org.apache.storm.perf
Class StrGenSpoutHdfsBoltTopo.LineWriter
- java.lang.Object
-
- org.apache.storm.perf.StrGenSpoutHdfsBoltTopo.LineWriter
-
- All Implemented Interfaces:
Serializable,RecordFormat
- Enclosing class:
- StrGenSpoutHdfsBoltTopo
public static class StrGenSpoutHdfsBoltTopo.LineWriter extends Object implements RecordFormat
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LineWriter(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]format(Tuple tuple)StrGenSpoutHdfsBoltTopo.LineWriterwithLineDelimiter(String delimiter)Overrides the default record delimiter.
-
-
-
Constructor Detail
-
LineWriter
public LineWriter(String fieldName)
-
-
Method Detail
-
withLineDelimiter
public StrGenSpoutHdfsBoltTopo.LineWriter withLineDelimiter(String delimiter)
Overrides the default record delimiter.
-
format
public byte[] format(Tuple tuple)
- Specified by:
formatin interfaceRecordFormat
-
-