Examples of flushCollisions()


Examples of net.opentsdb.tree.Tree.flushCollisions()

  public void flushCollisions() throws Exception {
    setupStorage(true, true);
    final Tree tree = buildTestTree();
    tree.setStoreFailures(true);
    tree.addCollision("010203", "AABBCCDD");
    assertNotNull(tree.flushCollisions(storage.getTSDB())
        .joinUninterruptibly());
    assertEquals(4, storage.numRows());
    assertEquals(3, storage.numColumns(new byte[] { 0, 1, 1 }));
  }
 
View Full Code Here

Examples of net.opentsdb.tree.Tree.flushCollisions()

  @Test
  public void flushCollisionsDisabled() throws Exception {
    setupStorage(true, true);
    final Tree tree = buildTestTree();
    tree.addCollision("010203", "AABBCCDD");
    assertNotNull(tree.flushCollisions(storage.getTSDB())
        .joinUninterruptibly());
    assertEquals(4, storage.numRows());
    assertEquals(2, storage.numColumns(new byte[] { 0, 1, 1 }));
  }
 
View Full Code Here

Examples of net.opentsdb.tree.Tree.flushCollisions()

  @Test
  public void flushCollisionsWCollisionExisting() throws Exception {
    setupStorage(true, true);
    final Tree tree = buildTestTree();
    tree.addCollision("010101", "AAAAAA");
    assertNotNull(tree.flushCollisions(storage.getTSDB())
        .joinUninterruptibly());
    assertEquals(4, storage.numRows());
    assertEquals(2, storage.numColumns(new byte[] { 0, 1, 1 }));
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.