public class DataMigrationRepository extends Object
Modifier and Type | Field and Description |
---|---|
static com.mongodb.BasicDBObject |
UNIT_VITAM_GRAPH_PROJECTION |
Constructor and Description |
---|
DataMigrationRepository()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
bulkReplaceUnits(List<Unit> updatedUnits)
Replaces all units in unordered bulk mode
|
void |
bulkUpgradeObjectGroups(List<String> objectGroupIds)
Replaces all units in unordered bulk mode
|
Map<String,Unit> |
getUnitGraphByIds(Collection<String> unitIds)
Returns units graph by Ids
|
CloseableIterator<List<String>> |
selectObjectGroupBulk()
Returns all object group ids to migrate by chunks of (at most) BULK_SIZE.
|
CloseableIterator<List<Unit>> |
selectUnitBulkInTopDownHierarchyLevel()
Returns all unit ids to migrate sorted by top-down hierarchy level, by chunks of (at most) BULK_SIZE.
|
public static final com.mongodb.BasicDBObject UNIT_VITAM_GRAPH_PROJECTION
public CloseableIterator<List<Unit>> selectUnitBulkInTopDownHierarchyLevel()
public Map<String,Unit> getUnitGraphByIds(Collection<String> unitIds)
public void bulkReplaceUnits(List<Unit> updatedUnits)
public CloseableIterator<List<String>> selectObjectGroupBulk()
Copyright © 2018 Vitam. All rights reserved.