Package uk.ac.starlink.ttools.cone
Class UploadConeTable
java.lang.Object
uk.ac.starlink.table.AbstractStarTable
uk.ac.starlink.ttools.cone.UploadConeTable
- All Implemented Interfaces:
Closeable
,AutoCloseable
,uk.ac.starlink.table.StarTable
public class UploadConeTable
extends uk.ac.starlink.table.AbstractStarTable
Table suitable for uploading based on a sequence of positional queries
and an RowMapper.
The resulting table contains just three columns: ID, RA, Dec.
This is a one-shot sequential table - only one row sequence may be taken out from it.
- Since:
- 4 Oct 2014
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionUploadConeTable
(ConeQueryRowSequence coneSeq, RowMapper<?> rowMapper, String idName, String raName, String decName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
uk.ac.starlink.table.ColumnInfo
getColumnInfo
(int icol) long
uk.ac.starlink.table.RowSequence
Methods inherited from class uk.ac.starlink.table.AbstractStarTable
checkedLongToInt, getCell, getColumnAuxDataInfos, getName, getParameters, getRow, getRowAccess, getRowSplittable, getURL, isRandom, 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
-
UploadConeTable
public UploadConeTable(ConeQueryRowSequence coneSeq, RowMapper<?> rowMapper, String idName, String raName, String decName) Constructor.- Parameters:
coneSeq
- sequence of positional queriesrowMapper
- maps index of query to an identifier objectidName
- column name for uploaded ID columnraName
- column name for uploaded RA columndecName
- column name for uploaded Dec column
-
-
Method Details
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceuk.ac.starlink.table.StarTable
- Specified by:
getColumnCount
in classuk.ac.starlink.table.AbstractStarTable
-
getColumnInfo
public uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol) - Specified by:
getColumnInfo
in interfaceuk.ac.starlink.table.StarTable
- Specified by:
getColumnInfo
in classuk.ac.starlink.table.AbstractStarTable
-
getRowCount
public long getRowCount()- Specified by:
getRowCount
in interfaceuk.ac.starlink.table.StarTable
- Specified by:
getRowCount
in classuk.ac.starlink.table.AbstractStarTable
-
getRowSequence
- Specified by:
getRowSequence
in interfaceuk.ac.starlink.table.StarTable
- Specified by:
getRowSequence
in classuk.ac.starlink.table.AbstractStarTable
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceuk.ac.starlink.table.StarTable
- Overrides:
close
in classuk.ac.starlink.table.AbstractStarTable
- Throws:
IOException
-