org.apache.storm.sql.runtime.serde.tsv

## Class TsvSerializer

- java.lang.Object
- - org.apache.storm.sql.runtime.serde.tsv.TsvSerializer

- All Implemented Interfaces:
    Serializable, IOutputSerializer

      public class TsvSerializer
      extends Object
      implements IOutputSerializer, Serializable

  TsvSerializer uses a simple delimited format implemention by splitting string, and it supports user defined delimiter.

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TsvSerializer(List<String> fields, char delimiter)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ByteBuffer` | `write(List<Object> data, ByteBuffer buffer)` Serialize the data to a ByteBuffer.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TsvSerializer

          public TsvSerializer(List<String> fields,
                               char delimiter)

  - ### Method Detail

    - #### write

          public ByteBuffer write(List<Object> data,
                                  ByteBuffer buffer)

      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 interface `IOutputSerializer`
      Returns:
        A ByteBuffer contains the serialized result.

Copyright © 2019 The Apache Software Foundation. All rights reserved.