uk.ac.starlink.ttools.cone
Class UploadConeTable

java.lang.Object
  extended by uk.ac.starlink.table.AbstractStarTable
      extended by uk.ac.starlink.ttools.cone.UploadConeTable
All Implemented Interfaces:
StarTable

public class UploadConeTable
extends 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
UploadConeTable(ConeQueryRowSequence coneSeq, RowMapper rowMapper, String idName, String raName, String decName)
          Constructor.
 
Method Summary
 int getColumnCount()
          Returns the number of columns in this table.
 ColumnInfo getColumnInfo(int icol)
          Returns the object describing the data in a given column.
 long getRowCount()
          Returns the number of rows in this table, if known.
 RowSequence getRowSequence()
          Returns an object which can iterate over all the rows in the table sequentially.
 
Methods inherited from class uk.ac.starlink.table.AbstractStarTable
checkedLongToInt, getCell, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getURL, isRandom, setName, setParameter, setParameters, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadConeTable

public UploadConeTable(ConeQueryRowSequence coneSeq,
                       RowMapper rowMapper,
                       String idName,
                       String raName,
                       String decName)
Constructor.

Parameters:
coneSeq - sequence of positional queries
rowMapper - maps index of query to an identifier object
idName - column name for uploaded ID column
raName - column name for uploaded RA column
decName - column name for uploaded Dec column
Method Detail

getColumnCount

public int getColumnCount()
Description copied from interface: StarTable
Returns the number of columns in this table.

Specified by:
getColumnCount in interface StarTable
Specified by:
getColumnCount in class AbstractStarTable
Returns:
the number of columns

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

getRowCount

public long getRowCount()
Description copied from interface: StarTable
Returns the number of rows in this table, if known. If the number of rows cannot be (easily) determined, a value of -1 will be returned.

Specified by:
getRowCount in interface StarTable
Specified by:
getRowCount in class AbstractStarTable
Returns:
the number of rows, or -1

getRowSequence

public RowSequence getRowSequence()
                           throws IOException
Description copied from interface: StarTable
Returns an object which can iterate over all the rows in the table sequentially.

Specified by:
getRowSequence in interface StarTable
Specified by:
getRowSequence in class AbstractStarTable
Returns:
an object providing sequential access to the table data
Throws:
IOException - if there is an error providing access


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.