|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.cone.ParallelResultRowSequence
public class ParallelResultRowSequence
ConeResultRowSequence implementation which uses a fixed number of worker threads to dispatch cone queries in parallel. The result table has the same ordering as if they had been done in sequence.
Constructor Summary | |
---|---|
ParallelResultRowSequence(ConeQueryRowSequence querySeq,
ConeSearcher coneSearcher,
boolean bestOnly,
String distanceCol,
int parallelism)
Constructor. |
Method Summary | |
---|---|
void |
close()
|
Object |
getCell(int icol)
|
uk.ac.starlink.table.StarTable |
getConeResult()
Returns the result of the cone search for the current row of this sequence. |
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. |
Object[] |
getRow()
|
boolean |
next()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParallelResultRowSequence(ConeQueryRowSequence querySeq, ConeSearcher coneSearcher, boolean bestOnly, String distanceCol, int parallelism)
querySeq
- sequence providing cone search query parametersconeSearcher
- cone search implementationbestOnly
- whether all results or just best are requireddistanceCol
- name of column to hold distance information
in output table, or nullparallelism
- number of concurrent querying threadsMethod Detail |
---|
public boolean next() throws IOException
next
in interface uk.ac.starlink.table.RowSequence
IOException
public Object getCell(int icol) throws IOException
getCell
in interface uk.ac.starlink.table.RowSequence
IOException
public Object[] getRow() throws IOException
getRow
in interface uk.ac.starlink.table.RowSequence
IOException
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 uk.ac.starlink.table.StarTable getConeResult() throws IOException
ConeResultRowSequence
ConeMatcher.getConeResult(uk.ac.starlink.ttools.cone.ConeSearcher, boolean, java.lang.String, double, double, double)
.
If no records in the cone are found, the return value may either be null or (preferably) an empty table with the correct columns.
getConeResult
in interface ConeResultRowSequence
IOException
public void close() throws IOException
close
in interface uk.ac.starlink.table.RowSequence
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |