public class OpenSearchOp extends Object
query(String) method returns an IProxyLocator identifying the ResultSet
which contains GenericRecords comprised of one or (optionally) two StringFields, with the first
containing the record content and the second containing the record id.| Constructor and Description |
|---|
OpenSearchOp(OpenSearchResource resource,
String[] fixedParams,
gr.uoa.di.madgik.environment.hint.EnvHintCollection envHints)
Creates a new OpenSearchOp using the default configuration specified in OpenSearchOpConfig.
|
OpenSearchOp(OpenSearchResource resource,
String[] fixedParams,
OpenSearchOpConfig config,
gr.uoa.di.madgik.environment.hint.EnvHintCollection envHints)
Creates a new OpenSearchOp using the configuration specified in the respective argument.
|
public OpenSearchOp(OpenSearchResource resource, String[] fixedParams, gr.uoa.di.madgik.environment.hint.EnvHintCollection envHints) throws Exception
resource - The OpenSearch Resource identifying an OpenSearch provider and the transformations necessary to obtain the resultsfixedParams - A set of pre-fixed OpenSearch parameters that override user parameters and are to be used while querying a broker.
The user parameters are used while querying the retrieved OpenSearch providers.envHints - An Environment Hint collection to be passed to the InformationSystem, if it is available.Exception - In case of errorpublic OpenSearchOp(OpenSearchResource resource, String[] fixedParams, OpenSearchOpConfig config, gr.uoa.di.madgik.environment.hint.EnvHintCollection envHints) throws Exception
resource - The OpenSearch Resource identifying an OpenSearch provider and the transformations necessary to obtain the resultsfixedParams - A set of pre-fixed OpenSearch parameters that override user parameters and are to be used while querying a broker.
The user parameters are used while querying the retrieved OpenSearch providers.config - The configuration to be usedenvHints - An Environment Hint collection to be passed to the InformationSystem, if it is available.Exception - In case of errorpublic URI query(String queryString) throws Exception
queryString - The operator query, in the form of qualified OpenSearch parameter, value pairs, where value should
be double-quoted.
The qualified OpenSearch parameters consist of the parameter names prefixed by their URl-encoded URI namespace.
The namespace prefix should also be present in the case of standard OpenSearch parameters such as searchTerms.
Some configuration parameters of the operator are exposed through the query interface, namely sequentialResults and
numOfResults. In that case, their name should be prefixed by the config prefix, e.g. config:numOfResults="100"Exception - In case of error while creating an OpenSearchWorker to handle the requestpublic void test(OpenSearchResource res) throws Exception
ExceptionCopyright © 2014. All Rights Reserved.