Class CoordSpec


  • @Equality
    public class CoordSpec
    extends java.lang.Object
    Characterises information about a coordinate value. It aggregates a table and a coordId, and provides the capability of reading the corresponding value data from a row sequence.
    Since:
    6 Jan 2020
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      CoordSpec​(DataSpec dataSpec, int icoord)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getCoordId()
      Returns the unique coordinate identifier for this spec.
      StorageType getStorageType()
      Returns the storage type for this column.
      uk.ac.starlink.table.StarTable getTable()
      Returns the table to which this coord belongs.
      int hashCode()  
      java.lang.Object readValue​(uk.ac.starlink.table.RowSequence rseq, long irow)
      Reads the user value for this coordinate from a row sequence.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CoordSpec

        public CoordSpec​(DataSpec dataSpec,
                         int icoord)
        Constructor.
        Parameters:
        dataSpec - data specification
        icoord - coordinate index within dataSpec
    • Method Detail

      • getTable

        public uk.ac.starlink.table.StarTable getTable()
        Returns the table to which this coord belongs.
        Returns:
        table
      • getStorageType

        public StorageType getStorageType()
        Returns the storage type for this column.
        Returns:
        storage type
      • getCoordId

        public java.lang.String getCoordId()
        Returns the unique coordinate identifier for this spec.
        Returns:
        coord ID
      • readValue

        public java.lang.Object readValue​(uk.ac.starlink.table.RowSequence rseq,
                                          long irow)
                                   throws java.io.IOException
        Reads the user value for this coordinate from a row sequence.
        Parameters:
        rseq - row sequence of this data spec's table
        irow - row index
        Returns:
        coordinate stored value for this column at current row
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object