Class TsvSerializer
java.lang.Object
org.apache.storm.sql.runtime.serde.tsv.TsvSerializer
- All Implemented Interfaces:
Serializable
,IOutputSerializer
TsvSerializer uses a simple delimited format implemention by splitting string,
and it supports user defined delimiter.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionwrite
(List<Object> data, ByteBuffer buffer) Serialize the data to a ByteBuffer.
-
Constructor Details
-
TsvSerializer
-
-
Method Details
-
write
Description copied from interface:IOutputSerializer
Serialize the data to a ByteBuffer. The caller can pass in a ByteBuffer so that the serializer can reuse the memory.- Specified by:
write
in interfaceIOutputSerializer
- Returns:
- A ByteBuffer contains the serialized result.
-