RegistryQuery
public class Ri1RegistryQuery extends java.lang.Object implements RegistryQuery
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
AG_REG |
Endpoint for primary AstroGrid registry.
|
static java.lang.String |
AG_REG2 |
Endpoint for secondary AstroGrid registry.
|
static java.lang.String |
EUROVO_REG |
Endpoint for Euro-VO registry.
|
static int |
RECORD_BUFFER_SIZE |
Default maximum number of registry entries retrieved at once.
|
static java.lang.String[] |
REGISTRIES |
List of likely registries.
|
static uk.ac.starlink.table.ValueInfo |
REGISTRY_INFO |
Description of metadata item describing registry location.
|
static uk.ac.starlink.table.ValueInfo |
TEXT_INFO |
Description of metadata item describing query text.
|
static java.lang.String |
VAO_REG |
Endpoint for VAO registry.
|
Constructor | Description |
---|---|
Ri1RegistryQuery(java.lang.String endpoint,
java.lang.String text) |
Constructs a new query object from a registry URL and a query.
|
Ri1RegistryQuery(uk.ac.starlink.registry.SoapClient soapClient,
java.lang.String text) |
Constructs a new query object from a SOAP client and a query.
|
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
getAdqlWhere(Capability cap) |
Returns an ADQL 1.0 WHERE clause which can be used to search
for capabilities of the given type in the registry.
|
uk.ac.starlink.table.DescribedValue[] |
getMetadata() |
Returns a set of DescribedValue objects which characterise this query.
|
java.util.Iterator<RegResource> |
getQueryIterator() |
Executes the query described by this object and returns an
Iterator over
RegResource objects. |
RegResource[] |
getQueryResources() |
Executes the query described by this object and returns the result as
an array of
RegResource s. |
java.net.URL |
getRegistry() |
Returns the registry URL.
|
static java.lang.String[] |
getSearchableRegistries(java.lang.String regUrl) |
Searches the given registry access URL to find a list of full searchable
registry access URLs.
|
java.lang.String |
getText() |
Returns the query text.
|
java.lang.String |
toString() |
public static int RECORD_BUFFER_SIZE
public static final uk.ac.starlink.table.ValueInfo REGISTRY_INFO
public static final uk.ac.starlink.table.ValueInfo TEXT_INFO
public static final java.lang.String AG_REG
public static final java.lang.String AG_REG2
public static final java.lang.String VAO_REG
public static final java.lang.String EUROVO_REG
public static final java.lang.String[] REGISTRIES
public Ri1RegistryQuery(uk.ac.starlink.registry.SoapClient soapClient, java.lang.String text)
soapClient
- SOAP clienttext
- ADQL WHERE clause for the registry querypublic Ri1RegistryQuery(java.lang.String endpoint, java.lang.String text)
endpoint
- registry endpoint URLtext
- ADQL WHERE clause for the registry querypublic java.util.Iterator<RegResource> getQueryIterator() throws java.io.IOException
RegistryQuery
RegResource
objects.
Note that the iterator's next
method may throw the
unchecked exception
RegistryQueryException
with a cause
indicating the underlying error in case of a registry access problem.getQueryIterator
in interface RegistryQuery
RegResource
sjava.io.IOException
public RegResource[] getQueryResources() throws java.io.IOException
RegistryQuery
RegResource
s.getQueryResources
in interface RegistryQuery
java.io.IOException
public java.lang.String getText()
RegistryQuery
getText
in interface RegistryQuery
public java.net.URL getRegistry()
RegistryQuery
getRegistry
in interface RegistryQuery
public uk.ac.starlink.table.DescribedValue[] getMetadata()
RegistryQuery
StarTable
resulting from the execution
of this query.getMetadata
in interface RegistryQuery
public static java.lang.String[] getSearchableRegistries(java.lang.String regUrl) throws java.io.IOException
regUrl
- registry to start withjava.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getAdqlWhere(Capability cap)
cap
- standard capabilityCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.