use of org.bboxdb.storage.tuplestore.manager.TupleStoreManager in project bboxdb by jnidzwetzki.
the class RegionSplitter method stopFlushToDisk.
/**
* Stop the to disk flushing
* @param ssTableName
* @throws StorageManagerException
*/
private void stopFlushToDisk(final TupleStoreName ssTableName) throws StorageManagerException {
final TupleStoreManager ssTableManager = registry.getTupleStoreManager(ssTableName);
// Stop flush thread, so new data remains in memory
ssTableManager.setToReadOnly();
}
use of org.bboxdb.storage.tuplestore.manager.TupleStoreManager in project bboxdb by jnidzwetzki.
the class SamplingHelper method getSamples.
/**
* Get the samples
*
* @param boundingBox
* @param splitDimension
* @param tables
* @return
* @throws StorageManagerException
*/
private static List<BoundingBox> getSamples(final BoundingBox boundingBox, final TupleStoreManagerRegistry tupleStoreManagerRegistry, final List<TupleStoreName> tables) throws StorageManagerException {
final List<BoundingBox> allPointSamples = new ArrayList<>();
for (final TupleStoreName ssTableName : tables) {
logger.info("Create split samples for table: {} ", ssTableName.getFullname());
final TupleStoreManager sstableManager = tupleStoreManagerRegistry.getTupleStoreManager(ssTableName);
final List<ReadOnlyTupleStore> tupleStores = sstableManager.getAllTupleStorages();
final List<BoundingBox> pointSamples = processTupleStores(tupleStores);
allPointSamples.addAll(pointSamples);
logger.info("Create split samples for table: {} DONE. Got {} samples.", ssTableName.getFullname(), pointSamples.size());
}
return allPointSamples;
}
Aggregations