Package uk.ac.starlink.table
Class LoopStarTable
java.lang.Object
uk.ac.starlink.table.AbstractStarTable
uk.ac.starlink.table.RandomStarTable
uk.ac.starlink.table.ColumnStarTable
uk.ac.starlink.table.LoopStarTable
- All Implemented Interfaces:
Closeable
,AutoCloseable
,StarTable
Single-column table whose column values are the values of a loop iterator
variable.
- Since:
- 6 Nov 2013
- Author:
- Mark Taylor
-
Field Summary
Fields inherited from class uk.ac.starlink.table.ColumnStarTable
columns_
-
Constructor Summary
ConstructorsConstructorDescriptionLoopStarTable
(String colName, double start, double end, double step, Boolean isInteger) Constructs a loop table from values like the initialisers of a for loop. -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the number of rows in the table (which must be applicable to all the columns).Methods inherited from class uk.ac.starlink.table.ColumnStarTable
addColumn, getCell, getColumnCount, getColumnData, getColumnInfo, makeTableWithRows, setCell, setColumn
Methods inherited from class uk.ac.starlink.table.RandomStarTable
getRowAccess, getRowSequence, isRandom
Methods inherited from class uk.ac.starlink.table.AbstractStarTable
checkedLongToInt, close, getColumnAuxDataInfos, getName, getParameters, getRow, getRowSplittable, getURL, 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
-
Constructor Details
-
LoopStarTable
Constructs a loop table from values like the initialisers of a for loop. TheisInteger
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 tablestart
- initial (row 0) value of variableend
- value which variable will not exceedstep
- per-row increment of variable
-
-
Method Details
-
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 interfaceStarTable
- Specified by:
getRowCount
in classColumnStarTable
- Returns:
- number of rows
-