public class ColumnQueryRowSequence extends WrapperRowSequence implements ConeQueryRowSequence
baseSeq
Constructor and Description |
---|
ColumnQueryRowSequence(StarTable table,
int raCol,
int decCol,
int srCol)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ConeQueryRowSequence |
createFixedRadiusSequence(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()
Attempts to advance the current row to the next one.
|
close, getCell, getRow, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getCell, getRow
public ColumnQueryRowSequence(StarTable table, int raCol, int decCol, int srCol) throws 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 degreesIOException
public double getRa() throws IOException
ConeQueryRowSequence
getRa
in interface ConeQueryRowSequence
IOException
public double getDec() throws IOException
ConeQueryRowSequence
getDec
in interface ConeQueryRowSequence
IOException
public double getRadius() throws IOException
ConeQueryRowSequence
getRadius
in interface ConeQueryRowSequence
IOException
public long getIndex()
ConeQueryRowSequence
next
.getIndex
in interface ConeQueryRowSequence
public boolean next() throws IOException
RowSequence
true
is returned the attempt has been successful,
and if false
is returned there are no more rows in this
sequence.
Since the initial position of a RowSequence is before the first row,
this method must be called before current row data
can be accessed using the
RowSequence.getCell(int)
or RowSequence.getRow()
methods.next
in interface RowSequence
next
in interface Sequence
next
in class WrapperRowSequence
true
iff this sequence has been advanced to the
next rowIOException
- if there is some errorpublic static ConeQueryRowSequence createFixedRadiusSequence(StarTable table, int raCol, int decCol, double sr) throws IOException
table
- input tableraCol
- index of column giving right ascension in degreesdecCol
- index of column giving declination in degreessr
- fixed search radius in degreesIOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.