public class ColumnQueryRowSequence extends uk.ac.starlink.table.WrapperRowSequence implements ConeQueryRowSequence
Constructor and Description |
---|
ColumnQueryRowSequence(uk.ac.starlink.table.StarTable table,
int raCol,
int decCol,
int srCol)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
long |
getIndex()
Get the index in the underlying table to which the current row relates.
|
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.
|
boolean |
next() |
close, getCell, getRow, toString
public ColumnQueryRowSequence(uk.ac.starlink.table.StarTable table, int raCol, int decCol, int srCol) throws java.io.IOException
table
- input tableraCol
- index of column giving right ascension in degreesdecCol
- index of column giving declination in degreessrCol
- index of column giving search radius in degreesjava.io.IOException
public double getRa() throws java.io.IOException
ConeQueryRowSequence
getRa
in interface ConeQueryRowSequence
java.io.IOException
public double getDec() throws java.io.IOException
ConeQueryRowSequence
getDec
in interface ConeQueryRowSequence
java.io.IOException
public double getRadius() throws java.io.IOException
ConeQueryRowSequence
getRadius
in interface ConeQueryRowSequence
java.io.IOException
public long getIndex()
ConeQueryRowSequence
next
.getIndex
in interface ConeQueryRowSequence
public boolean next() throws java.io.IOException
next
in interface uk.ac.starlink.table.RowSequence
next
in class uk.ac.starlink.table.WrapperRowSequence
java.io.IOException
public static ConeQueryRowSequence createFixedRadiusSequence(uk.ac.starlink.table.StarTable table, int raCol, int decCol, double sr) throws java.io.IOException
table
- input tableraCol
- index of column giving right ascension in degreesdecCol
- index of column giving declination in degreessr
- fixed search radius in degreesjava.io.IOException
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.