uk.ac.starlink.ttools.cone
Class ColumnQueryRowSequence

java.lang.Object
  extended by uk.ac.starlink.table.WrapperRowSequence
      extended by uk.ac.starlink.ttools.cone.ColumnQueryRowSequence
All Implemented Interfaces:
uk.ac.starlink.table.RowSequence, ConeQueryRowSequence

public class ColumnQueryRowSequence
extends uk.ac.starlink.table.WrapperRowSequence
implements ConeQueryRowSequence

ConeQueryRowSequence implementation which extracts values based on supplied column indices.

Since:
16 Oct 2007
Author:
Mark Taylor

Field Summary
 
Fields inherited from class uk.ac.starlink.table.WrapperRowSequence
baseSeq
 
Constructor Summary
ColumnQueryRowSequence(uk.ac.starlink.table.StarTable table, int raCol, int decCol, int srCol)
          Constructor.
 
Method Summary
static ConeQueryRowSequence createFixedRadiusSequence(uk.ac.starlink.table.StarTable table, int raCol, int decCol, double sr)
          Utility method which constructs a ConeQueryRowSequence object using column indices for RA and Dec but a constant value for the search radius.
 double getDec()
          Get central declination for the current row's cone search request in degrees.
 double getRa()
          Get central right ascension for the current row's cone search request in degrees.
 double getRadius()
          Get search radius for the current row's cone search request in degrees.
 
Methods inherited from class uk.ac.starlink.table.WrapperRowSequence
close, getCell, getRow, next, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uk.ac.starlink.table.RowSequence
close, getCell, getRow, next
 

Constructor Detail

ColumnQueryRowSequence

public ColumnQueryRowSequence(uk.ac.starlink.table.StarTable table,
                              int raCol,
                              int decCol,
                              int srCol)
                       throws IOException
Constructor.

Parameters:
table - input table
raCol - index of column giving right ascension in degrees
decCol - index of column giving declination in degrees
srCol - index of column giving search radius in degrees
Throws:
IOException
Method Detail

getRa

public double getRa()
             throws IOException
Description copied from interface: ConeQueryRowSequence
Get central right ascension for the current row's cone search request in degrees.

Specified by:
getRa in interface ConeQueryRowSequence
Returns:
right ascension
Throws:
IOException

getDec

public double getDec()
              throws IOException
Description copied from interface: ConeQueryRowSequence
Get central declination for the current row's cone search request in degrees.

Specified by:
getDec in interface ConeQueryRowSequence
Returns:
declination
Throws:
IOException

getRadius

public double getRadius()
                 throws IOException
Description copied from interface: ConeQueryRowSequence
Get search radius for the current row's cone search request in degrees.

Specified by:
getRadius in interface ConeQueryRowSequence
Returns:
search radius
Throws:
IOException

createFixedRadiusSequence

public static ConeQueryRowSequence createFixedRadiusSequence(uk.ac.starlink.table.StarTable table,
                                                             int raCol,
                                                             int decCol,
                                                             double sr)
                                                      throws IOException
Utility method which constructs a ConeQueryRowSequence object using column indices for RA and Dec but a constant value for the search radius.

Parameters:
table - input table
raCol - index of column giving right ascension in degrees
decCol - index of column giving declination in degrees
sr - fixed search radius in degrees
Throws:
IOException


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