public class GraphComputeServiceImpl extends Object implements GraphComputeService
$_SET, concurrencyLevel, executor, START_DEPTH| Modifier and Type | Method and Description |
|---|---|
void |
bulkElasticsearch(MetadataCollections metaDaCollection,
List<org.bson.Document> collection)
Bulk save in elasticsearch
|
void |
bulkElasticsearch(MetadataCollections metaDaCollection,
Set<String> collection)
Bulk save in elasticsearch
|
void |
bulkUpdateMongo(MetadataCollections metaDaCollection,
List<com.mongodb.client.model.WriteModel<org.bson.Document>> collection)
Bulk write in mongodb
|
void |
close() |
GraphComputeResponse |
computeGraph(com.fasterxml.jackson.databind.JsonNode queryDSL)
If workflow of compute graph in progress, do not execute this method
Should be exposed in the API
|
GraphComputeResponse |
computeGraph(MetadataCollections metadataCollections,
Set<String> documentsId,
boolean computeObjectGroupGraph)
Compute graph for unit/got from all parents
|
com.google.common.cache.LoadingCache<String,org.bson.Document> |
getCache() |
static GraphComputeService |
getInstance() |
static GraphComputeService |
initialize(VitamRepositoryProvider vitamRepositoryProvider,
MetaData metaData) |
static GraphComputeService |
initialize(VitamRepositoryProvider vitamRepositoryProvider,
MetaData metaData,
VitamCache<String,org.bson.Document> cache,
List<Integer> tenants) |
boolean |
isInProgress() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeGraph, computeObjectGroupGraph, computeObjectGroupGraph, computeUnitGraph, computeUnitGraphUsingDirectParents, preLoadCachepublic static GraphComputeService initialize(VitamRepositoryProvider vitamRepositoryProvider, MetaData metaData, VitamCache<String,org.bson.Document> cache, List<Integer> tenants)
vitamRepositoryProvider - metaData - tenants - public static GraphComputeService initialize(VitamRepositoryProvider vitamRepositoryProvider, MetaData metaData)
vitamRepositoryProvider - metaData - public static GraphComputeService getInstance()
public GraphComputeResponse computeGraph(com.fasterxml.jackson.databind.JsonNode queryDSL) throws MetaDataException
GraphComputeServicecomputeGraph in interface GraphComputeServiceMetaDataExceptionpublic GraphComputeResponse computeGraph(MetadataCollections metadataCollections, Set<String> documentsId, boolean computeObjectGroupGraph)
GraphComputeServicecomputeGraph in interface GraphComputeServicemetadataCollections - the collection concerned by the build of the graphdocumentsId - the collection of units subject of computing graphcomputeObjectGroupGraph - true mean compute graphpublic void bulkUpdateMongo(MetadataCollections metaDaCollection, List<com.mongodb.client.model.WriteModel<org.bson.Document>> collection) throws DatabaseException
GraphComputeServicebulkUpdateMongo in interface GraphComputeServiceDatabaseExceptionpublic void bulkElasticsearch(MetadataCollections metaDaCollection, Set<String> collection) throws DatabaseException
GraphComputeServicebulkElasticsearch in interface GraphComputeServicecollection - of id of documentsDatabaseExceptionpublic void bulkElasticsearch(MetadataCollections metaDaCollection, List<org.bson.Document> collection) throws DatabaseException
GraphComputeServicebulkElasticsearch in interface GraphComputeServicecollection - of documentsDatabaseExceptionpublic void close()
close in interface VitamAutoCloseableclose in interface AutoCloseablepublic boolean isInProgress()
isInProgress in interface GraphComputeServicepublic com.google.common.cache.LoadingCache<String,org.bson.Document> getCache()
getCache in interface VitamCache<String,org.bson.Document>Copyright © 2018 Vitam. All rights reserved.