Class GenericRowRecordAccessor

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

    public class GenericRowRecordAccessor
    extends Object
    implements org.hpccsystems.dfs.client.IRecordAccessor
    An implementation of IRecordAccessor that allows IRecordWriter to access Spark GenericRows.
    • Constructor Detail

      • GenericRowRecordAccessor

        public GenericRowRecordAccessor​(org.hpccsystems.commons.ecl.FieldDef fieldDef)
    • Method Detail

      • setRecord

        public org.hpccsystems.dfs.client.IRecordAccessor setRecord​(Object rd)
        Description copied from interface: org.hpccsystems.dfs.client.IRecordAccessor
        Sets the record.
        Specified by:
        setRecord in interface org.hpccsystems.dfs.client.IRecordAccessor
        Parameters:
        rd - the record
        Returns:
        the i record accessor
      • getNumFields

        public int getNumFields()
        Description copied from interface: org.hpccsystems.dfs.client.IRecordAccessor
        Gets the num fields.
        Specified by:
        getNumFields in interface org.hpccsystems.dfs.client.IRecordAccessor
        Returns:
        the num fields
      • getFieldValue

        public Object getFieldValue​(int index)
        Description copied from interface: org.hpccsystems.dfs.client.IRecordAccessor
        Gets the field value.
        Specified by:
        getFieldValue in interface org.hpccsystems.dfs.client.IRecordAccessor
        Parameters:
        index - the index
        Returns:
        the field value
      • getFieldDefinition

        public org.hpccsystems.commons.ecl.FieldDef getFieldDefinition​(int index)
        Description copied from interface: org.hpccsystems.dfs.client.IRecordAccessor
        Gets the field definition.
        Specified by:
        getFieldDefinition in interface org.hpccsystems.dfs.client.IRecordAccessor
        Parameters:
        index - the index
        Returns:
        the field definition
      • getChildRecordAccessor

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