|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--heasarc.w3browse.HeasarcQuery
This class queries the HEASARC database. Results are returned as an array of columns. The query is run in a separate thread. The object tries to parse header information from the query quickly so that column information is available even before all data has been read in. However no actual query results are returned until the entire query has been parsed.
Constructor Summary | |
HeasarcQuery(java.lang.String fullUrl)
The constructor starts the query. |
Method Summary | |
Column |
getColumn(int col)
Get a column. |
Column |
getColumn(java.lang.String colname)
Get a column. |
Column[] |
getColumns()
Get all columns |
boolean[] |
getIsNumeric(boolean wait)
Get flags indicating numeric columns. |
java.lang.String[] |
getNames(boolean wait)
Get the column names. |
int |
getNcol()
Get the number of columns. |
int |
getNrow()
|
Column[] |
getNumericColumns()
Get numeric columns |
java.lang.String[] |
getNumericNames()
Get numeric column names |
java.lang.String[] |
getTypes(boolean wait)
Get the column types. |
boolean |
isFail()
Did the query fail? |
void |
run()
Read and parse the query data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HeasarcQuery(java.lang.String fullUrl) throws java.io.IOException
Method Detail |
public void run()
run
in interface java.lang.Runnable
public int getNcol() throws heasarc.w3browse.BadDataException
public Column getColumn(int col) throws heasarc.w3browse.BadDataException
col
- The index of the desired columnpublic Column getColumn(java.lang.String colname) throws heasarc.w3browse.BadDataException
col
- The name of the desired columnpublic java.lang.String[] getNames(boolean wait) throws heasarc.w3browse.BadDataException
wait
- Wait for the results?public java.lang.String[] getTypes(boolean wait) throws heasarc.w3browse.BadDataException
wait
- Wait for results?public boolean[] getIsNumeric(boolean wait) throws heasarc.w3browse.BadDataException
wait
- Wait for results?public boolean isFail()
public int getNrow() throws heasarc.w3browse.BadDataException
public Column[] getColumns() throws heasarc.w3browse.BadDataException
public Column[] getNumericColumns() throws heasarc.w3browse.BadDataException
public java.lang.String[] getNumericNames() throws heasarc.w3browse.BadDataException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |