use of org.bboxdb.storage.tuplestore.ReadOnlyTupleStore 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