Class GroupWriteSupport

    • Constructor Detail

      • GroupWriteSupport

        public GroupWriteSupport()
    • Method Detail

      • setSchema

        public static void setSchema​(MessageType schema,
                                     org.apache.hadoop.conf.Configuration configuration)
      • getSchema

        public static MessageType getSchema​(org.apache.hadoop.conf.Configuration configuration)
      • getName

        public String getName()
        Description copied from class: WriteSupport
        Called to get a name to identify the WriteSupport object model. If not null, this is added to the file footer metadata.

        Defining this method will be required in a future API version.

        Overrides:
        getName in class WriteSupport<Group>
        Returns:
        a String name for file metadata.
      • init

        public WriteSupport.WriteContext init​(org.apache.hadoop.conf.Configuration configuration)
        Description copied from class: WriteSupport
        called first in the task
        Specified by:
        init in class WriteSupport<Group>
        Parameters:
        configuration - the job's configuration
        Returns:
        the information needed to write the file
      • write

        public void write​(Group record)
        Description copied from class: WriteSupport
        called once per record
        Specified by:
        write in class WriteSupport<Group>
        Parameters:
        record - one record to write to the previously provided record consumer