public class IndexClient extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
IndexClient() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createIndex(String collectionID) |
boolean |
delete(String collectionID,
String recordID) |
boolean |
deleteCollectionFieldsAlias(String collectionID) |
boolean |
deleteCollectionInfo(String collectionID) |
boolean |
deleteJSONTransformer(String collectionID) |
boolean |
dropCollection(String collectionID) |
Map<String,List<String>> |
getAllCollectionFields() |
Map<String,Map<String,String>> |
getAllCollectionFieldsAliases(boolean fromIndexToView) |
Map<String,org.gcube.rest.index.common.entities.CollectionInfo> |
getAllCollectionsInfo() |
Map<String,String> |
getAllJSONTransformers() |
Map<String,Map<String,String>> |
getCollectionFieldsAlias(String collectionID,
boolean fromIndexToView) |
Map<String,org.gcube.rest.index.common.entities.CollectionInfo> |
getCollectionInfo(String collectionID) |
ArrayList<String> |
getCollections() |
EndpointProvider |
getEndpointProvider() |
HashMap<String,String> |
getJSONTransformer(String collectionID) |
void |
initiateClient(String scope) |
boolean |
insertJson(String collectionID,
String recordJSON)
Inserts a document in the specified index (collectionID).
|
boolean |
insertJson(String collectionID,
String recordID,
String recordJSON)
Inserts a document in the specified index (collectionID).
|
org.gcube.rest.index.common.search.Search_Response |
search(org.gcube.rest.index.common.search.Query query) |
boolean |
setCollectionFieldsAlias(String collectionID,
Map<String,String> fieldAlias) |
boolean |
setCollectionInfo(String collectionID,
org.gcube.rest.index.common.entities.CollectionInfo collInfo) |
boolean |
setJSONTransformer(String collectionID,
String transformerJSON) |
public void initiateClient(String scope)
public EndpointProvider getEndpointProvider()
public boolean createIndex(String collectionID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Cacheable(value="COLLECTION_NAMES") public ArrayList<String> getCollections() throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Cacheable(value="COLLECTIONS_FIELDS") public Map<String,List<String>> getAllCollectionFields() throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean insertJson(String collectionID, String recordID, String recordJSON) throws NoAvailableIndexServiceInstance
collectionID - the name of the collection - it will map to the index namerecordID - recordJSON - the document in json formatNoAvailableIndexServiceInstancepublic boolean insertJson(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
NoAvailableIndexServiceInstancepublic boolean setCollectionFieldsAlias(String collectionID, Map<String,String> fieldAlias) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean deleteCollectionFieldsAlias(String collectionID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Cacheable(value="COLLECTIONS_FIELDS_ALIASES") public Map<String,Map<String,String>> getAllCollectionFieldsAliases(boolean fromIndexToView) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Cacheable(value="COLLECTIONS_FIELDS_ALIASES") public Map<String,Map<String,String>> getCollectionFieldsAlias(String collectionID, boolean fromIndexToView) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Cacheable(value="JSON_TRANSFORMERS") public Map<String,String> getAllJSONTransformers() throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Cacheable(value="JSON_TRANSFORMERS") public HashMap<String,String> getJSONTransformer(String collectionID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean setJSONTransformer(String collectionID, String transformerJSON) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean deleteJSONTransformer(String collectionID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic Map<String,org.gcube.rest.index.common.entities.CollectionInfo> getAllCollectionsInfo() throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstance@Cacheable(value="COLLECTION_INFOS") public Map<String,org.gcube.rest.index.common.entities.CollectionInfo> getCollectionInfo(String collectionID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean setCollectionInfo(String collectionID, org.gcube.rest.index.common.entities.CollectionInfo collInfo) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic boolean deleteCollectionInfo(String collectionID) throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstancepublic org.gcube.rest.index.common.search.Search_Response search(org.gcube.rest.index.common.search.Query query)
throws NoAvailableIndexServiceInstance
NoAvailableIndexServiceInstanceCopyright © 2016. All Rights Reserved.