Class UploadConeTable

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.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

      Constructors 
      Constructor Description
      UploadConeTable​(ConeQueryRowSequence coneSeq, RowMapper<?> rowMapper, java.lang.String idName, java.lang.String raName, java.lang.String decName)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      int getColumnCount()  
      uk.ac.starlink.table.ColumnInfo getColumnInfo​(int icol)  
      long getRowCount()  
      uk.ac.starlink.table.RowSequence getRowSequence()  
      • 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 Detail

      • UploadConeTable

        public UploadConeTable​(ConeQueryRowSequence coneSeq,
                               RowMapper<?> rowMapper,
                               java.lang.String idName,
                               java.lang.String raName,
                               java.lang.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()
        Specified by:
        getColumnCount in interface uk.ac.starlink.table.StarTable
        Specified by:
        getColumnCount in class uk.ac.starlink.table.AbstractStarTable
      • getColumnInfo

        public uk.ac.starlink.table.ColumnInfo getColumnInfo​(int icol)
        Specified by:
        getColumnInfo in interface uk.ac.starlink.table.StarTable
        Specified by:
        getColumnInfo in class uk.ac.starlink.table.AbstractStarTable
      • getRowCount

        public long getRowCount()
        Specified by:
        getRowCount in interface uk.ac.starlink.table.StarTable
        Specified by:
        getRowCount in class uk.ac.starlink.table.AbstractStarTable
      • getRowSequence

        public uk.ac.starlink.table.RowSequence getRowSequence()
                                                        throws java.io.IOException
        Specified by:
        getRowSequence in interface uk.ac.starlink.table.StarTable
        Specified by:
        getRowSequence in class uk.ac.starlink.table.AbstractStarTable
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface uk.ac.starlink.table.StarTable
        Overrides:
        close in class uk.ac.starlink.table.AbstractStarTable
        Throws:
        java.io.IOException