Class LoopStarTable

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

    public class LoopStarTable
    extends ColumnStarTable
    Single-column table whose column values are the values of a loop iterator variable.
    Since:
    6 Nov 2013
    Author:
    Mark Taylor
    • Constructor Detail

      • LoopStarTable

        public LoopStarTable​(java.lang.String colName,
                             double start,
                             double end,
                             double step,
                             java.lang.Boolean isInteger)
        Constructs a loop table from values like the initialisers of a for loop. The isInteger parameter may be set True for an integer column, False for a Double column, and null if the type is to be determined from the input values (integer if all are integers). Integer columns are 32-bit if the values permit, otherwise 64-bit.
        Parameters:
        colName - name of the single column name in the table
        start - initial (row 0) value of variable
        end - value which variable will not exceed
        step - per-row increment of variable
    • Method Detail

      • getRowCount

        public long getRowCount()
        Description copied from class: ColumnStarTable
        Gets the number of rows in the table (which must be applicable to all the columns). Since this is a RandomStarTable the return value must be non-negative.
        Specified by:
        getRowCount in interface StarTable
        Specified by:
        getRowCount in class ColumnStarTable
        Returns:
        number of rows