Examples of listSplits()


Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

    addSplits(opts, "4 5 6 7 8".split(" "));
    assertEquals(7, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
    opts.merge(Constants.METADATA_TABLE_NAME, new Text("6"), new Text("9"));
    assertEquals(5, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
    addSplits(opts, "44 55 66 77 88".split(" "));
    assertEquals(10, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
    opts.merge(Constants.METADATA_TABLE_NAME, new Text("5"), new Text("7"));
    assertEquals(7, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
    opts.merge(Constants.METADATA_TABLE_NAME, null, null);
    assertEquals(1, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
  }
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

    opts.merge(Constants.METADATA_TABLE_NAME, new Text("6"), new Text("9"));
    assertEquals(5, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
    addSplits(opts, "44 55 66 77 88".split(" "));
    assertEquals(10, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
    opts.merge(Constants.METADATA_TABLE_NAME, new Text("5"), new Text("7"));
    assertEquals(7, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
    opts.merge(Constants.METADATA_TABLE_NAME, null, null);
    assertEquals(1, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
  }
 
}
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

    addSplits(opts, "44 55 66 77 88".split(" "));
    assertEquals(10, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
    opts.merge(Constants.METADATA_TABLE_NAME, new Text("5"), new Text("7"));
    assertEquals(7, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
    opts.merge(Constants.METADATA_TABLE_NAME, null, null);
    assertEquals(1, opts.listSplits(Constants.METADATA_TABLE_NAME).size());
  }
 
}
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

    TableOperations opts = getConnector().tableOperations();
    for (int i = 1; i <= 10; i++) {
      opts.create("" + i);
    }
    opts.merge(MetadataTable.NAME, new Text("01"), new Text("02"));
    assertEquals(1, opts.listSplits(MetadataTable.NAME).size());
    addSplits(opts, "4 5 6 7 8".split(" "));
    assertEquals(6, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, new Text("6"), new Text("9"));
    assertEquals(4, opts.listSplits(MetadataTable.NAME).size());
    addSplits(opts, "44 55 66 77 88".split(" "));
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

      opts.create("" + i);
    }
    opts.merge(MetadataTable.NAME, new Text("01"), new Text("02"));
    assertEquals(1, opts.listSplits(MetadataTable.NAME).size());
    addSplits(opts, "4 5 6 7 8".split(" "));
    assertEquals(6, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, new Text("6"), new Text("9"));
    assertEquals(4, opts.listSplits(MetadataTable.NAME).size());
    addSplits(opts, "44 55 66 77 88".split(" "));
    assertEquals(9, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, new Text("5"), new Text("7"));
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

    opts.merge(MetadataTable.NAME, new Text("01"), new Text("02"));
    assertEquals(1, opts.listSplits(MetadataTable.NAME).size());
    addSplits(opts, "4 5 6 7 8".split(" "));
    assertEquals(6, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, new Text("6"), new Text("9"));
    assertEquals(4, opts.listSplits(MetadataTable.NAME).size());
    addSplits(opts, "44 55 66 77 88".split(" "));
    assertEquals(9, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, new Text("5"), new Text("7"));
    assertEquals(6, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, null, null);
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

    addSplits(opts, "4 5 6 7 8".split(" "));
    assertEquals(6, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, new Text("6"), new Text("9"));
    assertEquals(4, opts.listSplits(MetadataTable.NAME).size());
    addSplits(opts, "44 55 66 77 88".split(" "));
    assertEquals(9, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, new Text("5"), new Text("7"));
    assertEquals(6, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, null, null);
    assertEquals(0, opts.listSplits(MetadataTable.NAME).size());
  }
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

    opts.merge(MetadataTable.NAME, new Text("6"), new Text("9"));
    assertEquals(4, opts.listSplits(MetadataTable.NAME).size());
    addSplits(opts, "44 55 66 77 88".split(" "));
    assertEquals(9, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, new Text("5"), new Text("7"));
    assertEquals(6, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, null, null);
    assertEquals(0, opts.listSplits(MetadataTable.NAME).size());
  }

}
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

    addSplits(opts, "44 55 66 77 88".split(" "));
    assertEquals(9, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, new Text("5"), new Text("7"));
    assertEquals(6, opts.listSplits(MetadataTable.NAME).size());
    opts.merge(MetadataTable.NAME, null, null);
    assertEquals(0, opts.listSplits(MetadataTable.NAME).size());
  }

}
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.listSplits()

      }

      Assert.assertEquals(Integer.parseInt(cf) + Integer.parseInt(cq), Integer.parseInt(value));
    }

    Collection<Text> clonedSplits = tops.listSplits(clonedTable);
    Set<Text> expectedSplits = Sets.newHashSet(new Text("b"), new Text("c"), new Text("d"));
    for (Text clonedSplit : clonedSplits) {
      Assert.assertTrue("Encountered unexpected split on the cloned table: " + clonedSplit, expectedSplits.remove(clonedSplit));
    }
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.