Class JsonSerializer
java.lang.Object
org.apache.storm.sql.runtime.serde.json.JsonSerializer
- All Implemented Interfaces:
Serializable,IOutputSerializer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwrite(List<Object> data, ByteBuffer buffer) Serialize the data to a ByteBuffer.
-
Constructor Details
-
JsonSerializer
-
-
Method Details
-
write
Description copied from interface:IOutputSerializerSerialize the data to a ByteBuffer. The caller can pass in a ByteBuffer so that the serializer can reuse the memory.- Specified by:
writein interfaceIOutputSerializer- Returns:
- A ByteBuffer contains the serialized result.
-