public class TsvSerializer extends Object implements IOutputSerializer, Serializable
TsvSerializer uses a simple delimited format implemention by splitting string, and it supports user defined delimiter.
Constructor and Description |
---|
TsvSerializer(List<String> fields,
char delimiter) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
write(List<Object> data,
ByteBuffer buffer)
Serialize the data to a ByteBuffer.
|
public ByteBuffer write(List<Object> data, ByteBuffer buffer)
IOutputSerializer
Serialize the data to a ByteBuffer. The caller can pass in a ByteBuffer so that the serializer can reuse the memory.
write
in interface IOutputSerializer
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.