@Singleton public class OpenSearchOperator extends Object
| Constructor and Description |
|---|
OpenSearchOperator(org.gcube.rest.resourcemanager.discovery.InformationCollector icollector) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProviders(org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource resource,
List<String> fields,
List<String> collectionIds,
List<String> openSearchResourceIDs,
List<org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource.FixedParam> fixedParams) |
void |
clearCache(org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource resource,
String scope) |
protected static void |
filterFieldInfo(List<String> fields,
List<String> presentableFields,
List<String> searchableFields) |
org.gcube.opensearch.opensearchoperator.OpenSearchOpConfig |
getOpenSearchOpConfig() |
URI |
query(org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource resource,
String cqlQuery)
Performs a query on the OpenSearch provider that is connected to this resource.
|
URI |
query(org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource resource,
String cqlQuery,
boolean useRR) |
String |
retrieveGenericResource(String resourceID,
String scope)
Retrieves a generic resource using the IS
|
static String[] |
retrieveTemplates(org.gcube.opensearch.opensearchlibrary.DescriptionDocument dd,
org.gcube.opensearch.opensearchoperator.resource.OpenSearchResource res) |
@Inject public OpenSearchOperator(org.gcube.rest.resourcemanager.discovery.InformationCollector icollector)
public static String[] retrieveTemplates(org.gcube.opensearch.opensearchlibrary.DescriptionDocument dd, org.gcube.opensearch.opensearchoperator.resource.OpenSearchResource res) throws Exception
Exceptionprotected static void filterFieldInfo(List<String> fields, List<String> presentableFields, List<String> searchableFields)
public void addProviders(org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource resource,
List<String> fields,
List<String> collectionIds,
List<String> openSearchResourceIDs,
List<org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource.FixedParam> fixedParams)
throws Exception
Exceptionpublic String retrieveGenericResource(String resourceID, String scope) throws Exception
id - The id of the generic resource to retrievescope - The scope to useException - In case of errorpublic void clearCache(org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource resource,
String scope)
throws Exception
Exceptionpublic URI query(org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource resource, String cqlQuery) throws RemoteException
queryString - String - the query to be performed (using custom
syntax @see )URI - representation of the EPR for a resultset service which holds the results of the query.RemoteException - In case of errorpublic org.gcube.opensearch.opensearchoperator.OpenSearchOpConfig getOpenSearchOpConfig()
public URI query(org.gcube.rest.opensearch.common.resources.OpenSearchDataSourceResource resource, String cqlQuery, boolean useRR) throws RemoteException
RemoteExceptionCopyright © 2017. All Rights Reserved.