use of io.druid.collections.bitmap.BitmapFactory in project druid by druid-io.
the class LinearGutmanSplitStrategyTest method testNumChildrenSize.
@Test
public void testNumChildrenSize() {
BitmapFactory bf = new ConciseBitmapFactory();
RTree tree = new RTree(2, new LinearGutmanSplitStrategy(0, 50, bf), bf);
Random rand = new Random();
for (int i = 0; i < 100; i++) {
tree.insert(new float[] { rand.nextFloat(), rand.nextFloat() }, i);
}
Assert.assertTrue(getNumPoints(tree.getRoot()) >= tree.getSize());
}
Aggregations