| Package | Description |
|---|---|
| fr.gouv.vitam.metadata.core.database.collections |
Provides
|
| fr.gouv.vitam.metadata.core.graph | |
| fr.gouv.vitam.metadata.core.graph.api | |
| fr.gouv.vitam.metadata.core.reconstruction |
Provides reconstruction classes for Metadata module
|
| Modifier and Type | Method and Description |
|---|---|
static MetadataCollections |
MetadataCollections.getFromValue(String collection)
get collection from value.
|
protected MetadataCollections |
ObjectGroup.getMetadataCollections() |
protected abstract MetadataCollections |
MetadataDocument.getMetadataCollections() |
protected MetadataCollections |
Unit.getMetadataCollections() |
static MetadataCollections |
MetadataCollections.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataCollections[] |
MetadataCollections.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
ElasticsearchAccessMetadata.addIndex(MetadataCollections collection,
Integer tenantId)
Add a type to an index
|
org.elasticsearch.action.search.SearchResponse |
ElasticsearchAccessMetadata.basicSearch(MetadataCollections collection,
Integer tenantId,
List<org.elasticsearch.search.aggregations.AggregationBuilder> aggregations,
org.elasticsearch.index.query.QueryBuilder query)
Makes a search request on elasticsearch on a collection with aggregations and a query
|
static com.mongodb.client.result.DeleteResult |
MongoDbMetadataHelper.delete(MetadataCollections collection,
org.bson.conversions.Bson condition,
int nb)
Deprecated.
|
void |
ElasticsearchAccessMetadata.deleteEntryIndex(MetadataCollections collections,
Integer tenantId,
String type,
String id) |
boolean |
ElasticsearchAccessMetadata.deleteIndex(MetadataCollections collection,
Integer tenantId)
Delete one index
|
UpdatedDocument |
DbRequest.execUpdateRequest(RequestParserMultiple requestParser,
String documentId,
MetadataCollections metadataCollection,
OntologyValidator ontologyValidator,
UnitValidator unitValidator,
List<OntologyModel> ontologyModels) |
static MetadataDocument |
MongoDbMetadataHelper.findOne(MetadataCollections col,
String id)
Deprecated.
Find the corresponding id in col collection if it exists.
|
com.fasterxml.jackson.databind.JsonNode |
MetadataRepositoryService.getDocumentById(MetadataCollections collection,
String id,
Integer tenant)
Retrieve document by its ID in a given collection filtered by a tenant in mongo
|
List<com.fasterxml.jackson.databind.JsonNode> |
MetadataRepositoryService.getDocumentsByIds(MetadataCollections collection,
Collection<String> ids,
Integer tenant)
Retrieve document by its ID in a given collection filtered by a tenant in mongo
|
void |
ElasticsearchAccessMetadata.insertFullDocument(MetadataCollections collection,
Integer tenantId,
String id,
MetadataDocument doc)
Insert one element
|
void |
ElasticsearchAccessMetadata.insertFullDocuments(MetadataCollections collection,
Integer tenantId,
Collection<? extends MetadataDocument> documents) |
void |
ElasticsearchAccessMetadata.refreshIndex(MetadataCollections collection,
Integer tenantId)
refresh an index
|
protected Result |
ElasticsearchAccessMetadata.search(MetadataCollections collection,
Integer tenantId,
String type,
org.elasticsearch.index.query.QueryBuilder query,
List<org.elasticsearch.search.sort.SortBuilder> sorts,
int offset,
Integer limit,
List<org.elasticsearch.search.aggregations.AggregationBuilder> facets,
String scrollId,
Integer scrollTimeout) |
static com.mongodb.client.FindIterable<?> |
MongoDbMetadataHelper.select(MetadataCollections collection,
org.bson.conversions.Bson condition,
org.bson.conversions.Bson projection)
Deprecated.
Does not call getAfterLoad.
|
static com.mongodb.client.FindIterable<?> |
MongoDbMetadataHelper.select(MetadataCollections collection,
org.bson.conversions.Bson condition,
org.bson.conversions.Bson projection,
org.bson.conversions.Bson orderBy,
int offset,
int limit)
Deprecated.
Does not call getAfterLoad.
|
void |
ElasticsearchAccessMetadata.updateFullDocument(MetadataCollections collection,
Integer tenantId,
String id,
MetadataDocument doc)
Update one element fully
|
| Modifier and Type | Method and Description |
|---|---|
static void |
MetadataCollections.afterTest(Collection<MetadataCollections> metadataCollections,
Integer... tenants) |
static void |
MetadataCollections.afterTestClass(Collection<MetadataCollections> metadataCollections,
boolean deleteEsIndex,
Integer... tenants) |
static void |
MetadataCollections.beforeTestClass(com.mongodb.client.MongoDatabase db,
String prefix,
ElasticsearchAccessMetadata esClient,
Collection<MetadataCollections> metadataCollections,
Integer... tenants) |
| Modifier and Type | Method and Description |
|---|---|
Map<MetadataCollections,Integer> |
StoreGraphService.tryStoreGraph()
If no graph store in progress, try to start one
Should be exposed in the API
|
| Modifier and Type | Method and Description |
|---|---|
void |
GraphComputeServiceImpl.bulkElasticsearch(MetadataCollections metaDaCollection,
List<org.bson.Document> collection) |
void |
GraphComputeServiceImpl.bulkElasticsearch(MetadataCollections metaDaCollection,
Set<String> collection) |
void |
GraphComputeServiceImpl.bulkUpdateMongo(MetadataCollections metaDaCollection,
List<com.mongodb.client.model.WriteModel<org.bson.Document>> collection) |
GraphComputeResponse |
GraphComputeServiceImpl.computeGraph(MetadataCollections metadataCollections,
Set<String> documentsId,
boolean computeObjectGroupGraph) |
LocalDateTime |
StoreGraphService.getLastGraphStoreDate(MetadataCollections metadataCollections)
As the files generated are zip files.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GraphComputeService.bulkElasticsearch(MetadataCollections metaDaCollection,
List<org.bson.Document> collection)
Bulk save in elasticsearch
|
void |
GraphComputeService.bulkElasticsearch(MetadataCollections metaDaCollection,
Set<String> collection)
Bulk save in elasticsearch
|
void |
GraphComputeService.bulkUpdateMongo(MetadataCollections metaDaCollection,
List<com.mongodb.client.model.WriteModel<org.bson.Document>> collection)
Bulk write in mongodb
|
default void |
GraphComputeService.computeGraph(MetadataCollections metadataCollections,
List<org.bson.Document> documents)
Generic method to calculate graph for unit and object group
|
GraphComputeResponse |
GraphComputeService.computeGraph(MetadataCollections metadataCollections,
Set<String> unitsId,
boolean computeObjectGroupGraph)
Compute graph for unit/got from all parents
|
| Modifier and Type | Method and Description |
|---|---|
MetadataBackupModel |
RestoreBackupService.loadData(String strategy,
MetadataCollections collection,
String filename,
long offset)
Load data from storage
|
void |
ReconstructionService.purgeReconstructedDocumentsWithGraphOnlyData(MetadataCollections metaDaCollection)
Find all older (AU/GOT) where only graph data are reconstructed
As Documents with only graph data are not indexed in elasticsearch => we have not to implement deletion from Elastcisearch
|
Copyright © 2021 Vitam. All rights reserved.