Class GenericRowRecordBuilder

  • All Implemented Interfaces:
    org.hpccsystems.dfs.client.IRecordBuilder

    public class GenericRowRecordBuilder
    extends Object
    implements org.hpccsystems.dfs.client.IRecordBuilder
    An implementation of IRecordBuilder that allows IRecordReader to create Spark GenericRows.
    • Method Detail

      • setRecordDefinition

        public void setRecordDefinition​(org.hpccsystems.commons.ecl.FieldDef fieldDef)
                                 throws IllegalArgumentException
        Description copied from interface: org.hpccsystems.dfs.client.IRecordBuilder
        Sets the record definition.
        Specified by:
        setRecordDefinition in interface org.hpccsystems.dfs.client.IRecordBuilder
        Parameters:
        fieldDef - the new record definition
        Throws:
        IllegalArgumentException - the illegal argument exception
      • getRecordDefinition

        public org.hpccsystems.commons.ecl.FieldDef getRecordDefinition()
        Description copied from interface: org.hpccsystems.dfs.client.IRecordBuilder
        Gets the record definition.
        Specified by:
        getRecordDefinition in interface org.hpccsystems.dfs.client.IRecordBuilder
        Returns:
        the record definition
      • startRecord

        public void startRecord()
                         throws InstantiationException
        Description copied from interface: org.hpccsystems.dfs.client.IRecordBuilder
        Start record.
        Specified by:
        startRecord in interface org.hpccsystems.dfs.client.IRecordBuilder
        Throws:
        InstantiationException - the instantiation exception
      • finalizeRecord

        public Object finalizeRecord()
                              throws InstantiationException
        Description copied from interface: org.hpccsystems.dfs.client.IRecordBuilder
        Finalize record.
        Specified by:
        finalizeRecord in interface org.hpccsystems.dfs.client.IRecordBuilder
        Returns:
        the object
        Throws:
        InstantiationException - the instantiation exception
      • getChildRecordBuilder

        public org.hpccsystems.dfs.client.IRecordBuilder getChildRecordBuilder​(int index)
        Description copied from interface: org.hpccsystems.dfs.client.IRecordBuilder
        Gets the child record builder.
        Specified by:
        getChildRecordBuilder in interface org.hpccsystems.dfs.client.IRecordBuilder
        Parameters:
        index - the index
        Returns:
        the child record builder