public class CsvSerializer extends Object implements IOutputSerializer, Serializable
CsvSerializer uses the standard RFC4180 CSV Parser One of the difference from Tsv format is that fields with embedded commas will be quoted. eg: a,“b,c”,d is allowed.
Constructor and Description |
---|
CsvSerializer(List<String> fields) |
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 © 2022 The Apache Software Foundation. All rights reserved.