org.apache.storm.hdfs.bolt.format

## Interface SequenceFormat

- All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    DefaultSequenceFormat

      public interface SequenceFormat
      extends Serializable

  Interface for converting `Tuple` objects to HDFS sequence file key-value pairs.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `key(Tuple tuple)` Given a tuple, return the key that should be written to the sequence file.
    `Class` | `keyClass()` Key class used by implementation (e.g.
    `Object` | `value(Tuple tuple)` Given a tuple, return the value that should be written to the sequence file.
    `Class` | `valueClass()` Value class used by implementation (e.g.

- - ### Method Detail

    - #### keyClass

          Class keyClass()

      Key class used by implementation (e.g. IntWritable.class, etc.).

    - #### valueClass

          Class valueClass()

      Value class used by implementation (e.g. Text.class, etc.).

    - #### key

          Object key(Tuple tuple)

      Given a tuple, return the key that should be written to the sequence file.

    - #### value

          Object value(Tuple tuple)

      Given a tuple, return the value that should be written to the sequence file.

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