use of org.bboxdb.distribution.DistributionGroupConfigurationCache in project bboxdb by jnidzwetzki.
the class KDtreeSpacePartitioner method getDimension.
/**
* Get the dimension of the distribution region
* @return
*/
private int getDimension() {
try {
final DistributionGroupConfigurationCache instance = DistributionGroupConfigurationCache.getInstance();
final DistributionGroupConfiguration config = instance.getDistributionGroupConfiguration(distributionGroupName);
return config.getDimensions();
} catch (ZookeeperNotFoundException e) {
throw new RuntimeException(e);
}
}
Aggregations