public class IndexService extends Object implements org.gcube.rest.index.common.apis.IndexServiceI
| Constructor and Description |
|---|
IndexService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(String collectionID,
String gcubeScope) |
javax.ws.rs.core.Response |
delete(String collectionID,
String recordID,
String gcubeScope) |
javax.ws.rs.core.Response |
deleteCollectionFieldsAlias(String collectionID,
String gcubeScope) |
javax.ws.rs.core.Response |
deleteCollectionInfo(String collectionID,
String gcubeScope) |
javax.ws.rs.core.Response |
deleteJSONTransformer(String collectionID,
String gcubeScope) |
javax.ws.rs.core.Response |
dropCollection(String collectionID,
String gcubeScope) |
javax.ws.rs.core.Response |
getAllCollectionFields(boolean aliasFields,
String gcubeScope) |
javax.ws.rs.core.Response |
getCollectionFieldsAlias(String collectionID,
boolean fromIndexToView,
String gcubeScope) |
javax.ws.rs.core.Response |
getCollectionInfo(String collectionID,
String gcubeScope) |
javax.ws.rs.core.Response |
getJSONTransformer(String collectionID,
String gcubeScope) |
javax.ws.rs.core.Response |
insert(String collectionID,
String recordJSON,
String gcubeScope) |
javax.ws.rs.core.Response |
insert(String collectionID,
String recordID,
String recordJSON,
String gcubeScope)
Inserts a document in the specified index (collectionID).
|
javax.ws.rs.core.Response |
listCollections(String gcubeScope) |
javax.ws.rs.core.Response |
listFulltextEndpoints(String scope,
String gcubeScope) |
javax.ws.rs.core.Response |
search(String queryJson,
String gcubeScope) |
javax.ws.rs.core.Response |
setCollectionFieldsAlias(String collectionID,
String mappingsJSON,
String gcubeScope) |
javax.ws.rs.core.Response |
setCollectionInfo(String collectionID,
String infoJSON,
String gcubeScope) |
javax.ws.rs.core.Response |
setJSONTransformer(String collectionID,
String transformerJSON,
String gcubeScope) |
public javax.ws.rs.core.Response listCollections(@HeaderParam(value="gcube-scope")
String gcubeScope)
listCollections in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response getAllCollectionFields(boolean aliasFields,
@HeaderParam(value="gcube-scope")
String gcubeScope)
getAllCollectionFields in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response create(String collectionID, @HeaderParam(value="gcube-scope") String gcubeScope)
public javax.ws.rs.core.Response insert(String collectionID, String recordID, String recordJSON, @HeaderParam(value="gcube-scope") String gcubeScope)
insert in interface org.gcube.rest.index.common.apis.IndexServiceIcollectionID - the name of the collection - it will map to the index namerecordID - if null or empty, index assigns it an auto-generatedrecordJSON - the document in json formatpublic javax.ws.rs.core.Response insert(String collectionID, String recordJSON, @HeaderParam(value="gcube-scope") String gcubeScope)
insert in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response delete(String collectionID, String recordID, @HeaderParam(value="gcube-scope") String gcubeScope)
delete in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response dropCollection(String collectionID, @HeaderParam(value="gcube-scope") String gcubeScope)
dropCollection in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response listFulltextEndpoints(String scope, @HeaderParam(value="gcube-scope") String gcubeScope)
listFulltextEndpoints in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response getCollectionFieldsAlias(String collectionID, boolean fromIndexToView, @HeaderParam(value="gcube-scope") String gcubeScope)
getCollectionFieldsAlias in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response setCollectionFieldsAlias(String collectionID, String mappingsJSON, @HeaderParam(value="gcube-scope") String gcubeScope)
setCollectionFieldsAlias in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response deleteCollectionFieldsAlias(String collectionID, @HeaderParam(value="gcube-scope") String gcubeScope)
deleteCollectionFieldsAlias in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response getJSONTransformer(String collectionID, @HeaderParam(value="gcube-scope") String gcubeScope)
getJSONTransformer in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response setJSONTransformer(String collectionID, String transformerJSON, @HeaderParam(value="gcube-scope") String gcubeScope)
setJSONTransformer in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response deleteJSONTransformer(String collectionID, @HeaderParam(value="gcube-scope") String gcubeScope)
deleteJSONTransformer in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response getCollectionInfo(String collectionID, @HeaderParam(value="gcube-scope") String gcubeScope)
getCollectionInfo in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response setCollectionInfo(String collectionID, String infoJSON, @HeaderParam(value="gcube-scope") String gcubeScope)
setCollectionInfo in interface org.gcube.rest.index.common.apis.IndexServiceIpublic javax.ws.rs.core.Response deleteCollectionInfo(String collectionID, @HeaderParam(value="gcube-scope") String gcubeScope)
deleteCollectionInfo in interface org.gcube.rest.index.common.apis.IndexServiceICopyright © 2016. All Rights Reserved.