Class TableDelimitedAdapter

java.lang.Object
gov.nasa.pds.objectAccess.table.TableDelimitedAdapter
All Implemented Interfaces:
TableAdapter

public class TableDelimitedAdapter
extends Object
implements TableAdapter
  • Constructor Details

    • TableDelimitedAdapter

      public TableDelimitedAdapter​(TableDelimited table)
      Creates a new instance for a particular table.
      Parameters:
      table - the table
  • Method Details

    • getRecordCount

      public int getRecordCount()
      Description copied from interface: TableAdapter
      Gets the number of records in the table.
      Specified by:
      getRecordCount in interface TableAdapter
      Returns:
      the number of records
    • getFieldCount

      public int getFieldCount()
      Description copied from interface: TableAdapter
      Gets the number of fields in each record.
      Specified by:
      getFieldCount in interface TableAdapter
      Returns:
      the number of fields
    • getField

      public FieldDescription getField​(int index)
      Description copied from interface: TableAdapter
      Returns the field at a given index. This field will be a simple field or a bit field. All grouped fields will have been expanded to their instances.
      Specified by:
      getField in interface TableAdapter
      Parameters:
      index - the field index
      Returns:
      the field description
    • getFields

      public FieldDescription[] getFields()
      Description copied from interface: TableAdapter
      Gets the definitions of fields from the table. The fields will be a simple field or a bit field. All grouped fiels will have been expanded to their instances.
      Specified by:
      getFields in interface TableAdapter
      Returns:
      an array of field descriptions
    • getOffset

      public long getOffset()
      Description copied from interface: TableAdapter
      Gets the offset into the data file where the table starts.
      Specified by:
      getOffset in interface TableAdapter
      Returns:
      the table offset
    • getRecordLength

      public int getRecordLength()
      Description copied from interface: TableAdapter
      Gets the length of each record. For delimited tables the record length is not defined, so zero is returned.
      Specified by:
      getRecordLength in interface TableAdapter
      Returns:
      the record length, or zero for a delimited table
    • getFieldDelimiter

      public char getFieldDelimiter()