Examples of flushNotMatched()


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

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

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

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

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

  @Test
  public void flushNotMatchedWNotMatchedExisting() throws Exception {
    setupStorage(true, true);
    final Tree tree = buildTestTree();
    tree.addNotMatched("010101", "Failed rule 4:4");
    assertNotNull(tree.flushNotMatched(storage.getTSDB())
        .joinUninterruptibly());
    assertEquals(4, storage.numRows());
    assertEquals(2, storage.numColumns(new byte[] { 0, 1, 2 }));
  }
 
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.