use of org.bboxdb.storage.tuplestore.manager.TupleStoreManagerRegistry in project bboxdb by jnidzwetzki.
the class SSTableServiceRunnable method testForUnderflow.
/**
* Test for region underflow
*
* @param spacePartitioner
* @param regionToMerge
* @throws BBoxDBException
*/
private void testForUnderflow(final SpacePartitioner spacePartitioner, final DistributionRegion oneSourceNode) throws BBoxDBException {
final List<List<DistributionRegion>> candidates = spacePartitioner.getMergeCandidates(oneSourceNode);
for (final List<DistributionRegion> sources : candidates) {
if (RegionMergeHelper.isRegionUnderflow(sources)) {
final TupleStoreManagerRegistry tupleStoreManagerRegistry = storage.getTupleStoreManagerRegistry();
final RegionMerger regionMerger = new RegionMerger(tupleStoreManagerRegistry);
regionMerger.mergeRegion(sources, spacePartitioner, tupleStoreManagerRegistry);
return;
}
}
}
Aggregations