Package uk.ac.starlink.ttools.filter
Class RepeatTable
java.lang.Object
uk.ac.starlink.table.WrapperStarTable
uk.ac.starlink.ttools.filter.RepeatTable
- All Implemented Interfaces:
Closeable,AutoCloseable,uk.ac.starlink.table.StarTable
public class RepeatTable
extends uk.ac.starlink.table.WrapperStarTable
Wrapper table which repeats the rows of the base table multiple times.
- Since:
- 5 Aug 2010
- Author:
- Mark Taylor
-
Field Summary
Fields inherited from class uk.ac.starlink.table.WrapperStarTable
baseTable -
Constructor Summary
ConstructorsConstructorDescriptionRepeatTable(uk.ac.starlink.table.StarTable base, long count, boolean byrow) Constructor. -
Method Summary
Methods inherited from class uk.ac.starlink.table.WrapperStarTable
checkedLongToInt, close, getBaseTable, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, getURL, isRandom, setName, setParameter, setURL, toString
-
Constructor Details
-
RepeatTable
public RepeatTable(uk.ac.starlink.table.StarTable base, long count, boolean byrow) Constructor.- Parameters:
base- base tablecount- number of repeatsbyrow- if false, input table with rows 123 gives output table 123123; if true, it's 112233
-
-
Method Details
-
getRowCount
public long getRowCount()- Specified by:
getRowCountin interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowCountin classuk.ac.starlink.table.WrapperStarTable
-
getCell
- Specified by:
getCellin interfaceuk.ac.starlink.table.StarTable- Overrides:
getCellin classuk.ac.starlink.table.WrapperStarTable- Throws:
IOException
-
getRow
- Specified by:
getRowin interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowin classuk.ac.starlink.table.WrapperStarTable- Throws:
IOException
-
getRowAccess
- Specified by:
getRowAccessin interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowAccessin classuk.ac.starlink.table.WrapperStarTable- Throws:
IOException
-
getRowSequence
- Specified by:
getRowSequencein interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowSequencein classuk.ac.starlink.table.WrapperStarTable- Throws:
IOException
-
getRowSplittable
- Specified by:
getRowSplittablein interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowSplittablein classuk.ac.starlink.table.WrapperStarTable- Throws:
IOException
-