Search in sources :

Example 1 with RegionSplitter

use of org.bboxdb.distribution.partitioner.regionsplit.RegionSplitter in project bboxdb by jnidzwetzki.

the class SSTableServiceRunnable method executeSplit.

/**
 * Execute a region split
 *
 * @param sstableManager
 * @param spacePartitioner
 * @param regionToSplit
 * @throws StorageManagerException
 * @throws BBoxDBException
 * @throws InterruptedException
 */
private void executeSplit(final TupleStoreManager sstableManager, final SpacePartitioner spacePartitioner, final DistributionRegion regionToSplit) throws Exception {
    final TupleStoreManagerRegistry tupleStoreManagerRegistry = storage.getTupleStoreManagerRegistry();
    final RegionSplitter regionSplitter = new RegionSplitter(tupleStoreManagerRegistry);
    forceMajorCompact(sstableManager);
    regionSplitter.splitRegion(regionToSplit, spacePartitioner, tupleStoreManagerRegistry);
}
Also used : TupleStoreManagerRegistry(org.bboxdb.storage.tuplestore.manager.TupleStoreManagerRegistry) RegionSplitter(org.bboxdb.distribution.partitioner.regionsplit.RegionSplitter)

Aggregations

RegionSplitter (org.bboxdb.distribution.partitioner.regionsplit.RegionSplitter)1 TupleStoreManagerRegistry (org.bboxdb.storage.tuplestore.manager.TupleStoreManagerRegistry)1