|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.WrapperRowSequence
uk.ac.starlink.ttools.cone.ColumnQueryRowSequence
public class ColumnQueryRowSequence
ConeQueryRowSequence implementation which extracts values based on supplied column indices.
Field Summary |
---|
Fields inherited from class uk.ac.starlink.table.WrapperRowSequence |
---|
baseSeq |
Constructor Summary | |
---|---|
ColumnQueryRowSequence(StarTable table,
int raCol,
int decCol,
int srCol)
Constructor. |
Method Summary | |
---|---|
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 advances the current row to the next one. |
Methods inherited from class uk.ac.starlink.table.WrapperRowSequence |
---|
close, getCell, getRow, 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 |
Constructor Detail |
---|
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 degrees
IOException
Method Detail |
---|
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
RowSequence.getCell(int)
or RowSequence.getRow()
methods.
next
in interface RowSequence
next
in class WrapperRowSequence
IOException
- 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 degrees
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |