Class DefaultSequenceFormat

    • Constructor Detail

      • DefaultSequenceFormat

        public DefaultSequenceFormat​(String keyField,
                                     String valueField)
    • Method Detail

      • keyClass

        public Class keyClass()
        Description copied from interface: SequenceFormat
        Key class used by implementation (e.g. IntWritable.class, etc.).
        Specified by:
        keyClass in interface SequenceFormat
      • key

        public org.apache.hadoop.io.Writable key​(Tuple tuple)
        Description copied from interface: SequenceFormat
        Given a tuple, return the key that should be written to the sequence file.
        Specified by:
        key in interface SequenceFormat
      • value

        public org.apache.hadoop.io.Writable value​(Tuple tuple)
        Description copied from interface: SequenceFormat
        Given a tuple, return the value that should be written to the sequence file.
        Specified by:
        value in interface SequenceFormat