public class ServiceConeSearcher extends DalConeSearcher implements ConeSearcher
Constructor and Description |
---|
ServiceConeSearcher(uk.ac.starlink.vo.ConeSearch csearch,
int verb,
boolean believeEmpty,
uk.ac.starlink.table.StarTableFactory tfact)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Called when this searcher is no longer required.
|
int |
getDecIndex(uk.ac.starlink.table.StarTable result)
Returns the index of a column giving the declination in the
returned table.
|
int |
getRaIndex(uk.ac.starlink.table.StarTable result)
Returns the index of a column giving the right ascension in the
returned table.
|
uk.ac.starlink.table.StarTable |
performSearch(double ra,
double dec,
double sr)
Returns a table consisting of all the objects within a given search
radius of a specified point on the sky.
|
getConsistentTable, getInconsistentEmptyAdvice, getUcd1DecIndex, getUcd1RaIndex
public ServiceConeSearcher(uk.ac.starlink.vo.ConeSearch csearch, int verb, boolean believeEmpty, uk.ac.starlink.table.StarTableFactory tfact)
csearch
- cone search service specification objectverb
- verbosity parameterbelieveEmpty
- whether empty tables are considered to
contain correct metadatatfact
- table factorypublic uk.ac.starlink.table.StarTable performSearch(double ra, double dec, double sr) throws java.io.IOException
ConeSearcher
performSearch
in interface ConeSearcher
ra
- right ascension in degrees of search region centredec
- declination in degrees of search region centresr
- search radius in degreesjava.io.IOException
public int getRaIndex(uk.ac.starlink.table.StarTable result)
ConeSearcher
getRaIndex
in interface ConeSearcher
result
- table returned by performSearch
public int getDecIndex(uk.ac.starlink.table.StarTable result)
ConeSearcher
getDecIndex
in interface ConeSearcher
result
- table returned by performSearch
public void close()
ConeSearcher
close
in interface ConeSearcher
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.