Search in sources :

Example 1 with DistributionGroupConfigurationCache

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);
    }
}
Also used : DistributionGroupConfigurationCache(org.bboxdb.distribution.DistributionGroupConfigurationCache) ZookeeperNotFoundException(org.bboxdb.distribution.zookeeper.ZookeeperNotFoundException) DistributionGroupConfiguration(org.bboxdb.storage.entity.DistributionGroupConfiguration)

Aggregations

DistributionGroupConfigurationCache (org.bboxdb.distribution.DistributionGroupConfigurationCache)1 ZookeeperNotFoundException (org.bboxdb.distribution.zookeeper.ZookeeperNotFoundException)1 DistributionGroupConfiguration (org.bboxdb.storage.entity.DistributionGroupConfiguration)1