Class ConstantStarTable

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, StarTable

    public class ConstantStarTable
    extends RandomStarTable
    Table implementation representing a table in which every row is the same as every other.
    Since:
    3 Jul 2006
    Author:
    Mark Taylor
    • Constructor Detail

      • ConstantStarTable

        public ConstantStarTable​(ColumnInfo[] infos,
                                 java.lang.Object[] cells,
                                 long nrow)
        Constructs a new constant star table.
        Parameters:
        infos - array of column metadata objects (one for each column)
        cells - row data - the same for every row
        nrow - number of rows in this table
    • Method Detail

      • getColumnInfo

        public ColumnInfo getColumnInfo​(int icol)
        Description copied from interface: StarTable
        Returns the object describing the data in a given column.
        Specified by:
        getColumnInfo in interface StarTable
        Specified by:
        getColumnInfo in class AbstractStarTable
        Parameters:
        icol - the column for which header information is required
        Returns:
        a ValueInfo object for column icol
      • getCell

        public java.lang.Object getCell​(long lrow,
                                        int icol)
        Description copied from class: RandomStarTable
        Implementations of this method must be safe for concurrent calls from multiple threads.
        Specified by:
        getCell in interface StarTable
        Specified by:
        getCell in class RandomStarTable
        Parameters:
        lrow - the index of the cell's row
        icol - the index of the cell's column
        Returns:
        the contents of this cell