uk.ac.starlink.pds4

## Class Pds4StarTable

- java.lang.Object
- - uk.ac.starlink.table.AbstractStarTable
  - - uk.ac.starlink.pds4.Pds4StarTable

- All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, StarTable
  Direct Known Subclasses:
    BasePds4StarTable, DelimitedPds4StarTable

      public abstract class Pds4StarTable
      extends AbstractStarTable

  Abstract superclass for PDS4 StarTable implementations. This handles table metadata that is not dependent on the exact storage format, but concrete subclasses have to implement data access (`getRowSequence`).
  Since:
    24 Nov 2021

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static ValueInfo` | `DESCRIPTION_INFO`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `Pds4StarTable(Table table, java.net.URI contextUri)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getRowCount()` Returns the number of rows in this table, if known.

    - ### Methods inherited from class uk.ac.starlink.table.AbstractStarTable

      `checkedLongToInt, close, getCell, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameters, getRow, getRowAccess, getRowSequence, getRowSplittable, getURL, isRandom, setName, setParameters, setURL`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface uk.ac.starlink.table.StarTable

      `getParameterByName, setParameter`

- - ### Field Detail

    - #### DESCRIPTION_INFO

          public static final ValueInfo DESCRIPTION_INFO

  - ### Constructor Detail

    - #### Pds4StarTable

          protected Pds4StarTable(Table table,
                                  java.net.URI contextUri)
                           throws java.io.IOException

      Constructor.
      Parameters:
        `table` - table object on which this table is based
        `contextUri` - parent URI for the PDS4 label
      Throws:
        `java.io.IOException`

  - ### Method Detail

    - #### getRowCount

          public long getRowCount()

      Description copied from interface: `StarTable`
      Returns the number of rows in this table, if known. If the number of rows cannot be (easily) determined, a value of -1 will be returned.
      Specified by:
        `getRowCount` in interface `StarTable`
      Specified by:
        `getRowCount` in class `AbstractStarTable`
      Returns:
        the number of rows, or -1