public class IndexClient extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
IndexClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCompletelyCache() |
boolean |
createEmptyIndex(org.gcube.rest.index.common.entities.CollectionInfo collectionInfo)
Deprecated.
|
boolean |
delete(String collectionID,
String recordID) |
boolean |
deleteCollectionFieldsAlias(String collectionID)
Deprecated.
|
boolean |
deleteCompleteCollectionInfo(String collectionID) |
boolean |
dropCollection(String collectionID) |
Map<String,List<org.gcube.rest.index.common.entities.fields.Field>> |
getAllCollectionFields(String collectionDomain) |
Map<String,Long> |
getCollectionDocCounts(String collectionDomain) |
Map<String,Map<String,String>> |
getCollectionFieldsAlias(String collectionID,
boolean fromIndexToView,
String collectionDomain)
Deprecated.
|
List<String> |
getCollections(String collectionDomain) |
List<org.gcube.rest.index.common.entities.CollectionInfo> |
getCompleteCollectionInfo(String collectionID,
String collectionDomain) |
EndpointProvider |
getEndpointProvider() |
void |
initiateClient(String scope) |
boolean |
insertJson(String domain,
String collectionID,
String recordJSON)
Inserts a document in the specified index (collectionID).
|
boolean |
insertJson(String domain,
String collectionID,
String recordID,
String recordJSON)
Inserts a document in the specified index (collectionID).
|
boolean |
reIndex(org.gcube.rest.index.common.entities.CollectionInfo collectionInfo) |
org.gcube.rest.index.common.search.Search_Response |
search(org.gcube.rest.index.common.search.Query query,
String collectionDomain) |
boolean |
setCollectionFieldsAlias(String collectionID,
Map<String,String> fieldAlias)
Deprecated.
|
boolean |
setCompleteCollectionInfo(org.gcube.rest.index.common.entities.CollectionInfo coll) |
public void initiateClient(String scope)
public EndpointProvider getEndpointProvider()
@Deprecated public boolean createEmptyIndex(org.gcube.rest.index.common.entities.CollectionInfo collectionInfo) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean reIndex(org.gcube.rest.index.common.entities.CollectionInfo collectionInfo)
throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic List<String> getCollections(String collectionDomain) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic Map<String,List<org.gcube.rest.index.common.entities.fields.Field>> getAllCollectionFields(String collectionDomain) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean insertJson(String domain, String collectionID, String recordID, String recordJSON) throws NoAvailableIndexServiceInstance
domain - is the sub-domain that this datasource resides. (don't confuse it with "scope" on which the whole index runs)collectionID - the name of the collection - it will map to the index namerecordID - recordJSON - the document in json formatNoAvailableIndexServiceInstancepublic boolean insertJson(String domain, String collectionID, String recordJSON) throws NoAvailableIndexServiceInstance
collectionID - the name of the collection - it will map to the index namerecordJSON - the document in json formatNoAvailableIndexServiceInstancepublic boolean delete(String collectionID, String recordID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean dropCollection(String collectionID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Deprecated public boolean setCollectionFieldsAlias(String collectionID, Map<String,String> fieldAlias) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Deprecated public boolean deleteCollectionFieldsAlias(String collectionID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Deprecated public Map<String,Map<String,String>> getCollectionFieldsAlias(String collectionID, boolean fromIndexToView, String collectionDomain) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic List<org.gcube.rest.index.common.entities.CollectionInfo> getCompleteCollectionInfo(String collectionID, String collectionDomain) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean setCompleteCollectionInfo(org.gcube.rest.index.common.entities.CollectionInfo coll)
throws NoAvailableIndexServiceInstance,
BadCallException
public boolean deleteCompleteCollectionInfo(String collectionID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic Map<String,Long> getCollectionDocCounts(String collectionDomain) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic org.gcube.rest.index.common.search.Search_Response search(org.gcube.rest.index.common.search.Query query,
String collectionDomain)
throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@CacheEvict(value={"COMPLETE_COLLECTION_INFOS","COLLECTIONS_FIELDS_ALIASES","COLLECTIONS_FIELDS","COLLECTION_NAMES","ENDPOINTS","JSON_TRANSFORMERS"},
allEntries=true,
beforeInvocation=true)
public void clearCompletelyCache()
Copyright © 2017. All Rights Reserved.