@Test public void testSequentialTablets() { KeyExtent extent = new KeyExtent(TableId.of("1"), new Text("2"), new Text("1")); assertEquals(new Text("1\0"), BulkImporter.getStartRowForExtent(extent)); extent = new KeyExtent(TableId.of("1"), new Text("2"), null); assertNull(BulkImporter.getStartRowForExtent(extent)); extent = new KeyExtent(TableId.of("1"), null, null); assertNull(BulkImporter.getStartRowForExtent(extent)); extent = new KeyExtent(TableId.of("1"), new Text("8"), new Text("7777777")); assertEquals(new Text("7777777\0"), BulkImporter.getStartRowForExtent(extent)); }
protected static Text getStartRowForExtent(KeyExtent extent) { Text start = extent.prevEndRow(); if (start != null) { start = new Text(start); start.append(byte0, 0, 1); } return start; }
BulkImporter { protected static Text getStartRowForExtent(KeyExtent extent) { Text start = extent.prevEndRow(); if (start != null) { start = new Text(start); start.append(byte0, 0, 1); } return start; } }
BulkImporter { protected static Text getStartRowForExtent(KeyExtent extent) { Text start = extent.prevEndRow(); if (start != null) { start = new Text(start); start.append(byte0, 0, 1); } return start; } BulkImporter(ServerContext context, long tid, String tableId, boolean setTime); }
BulkImporter { protected static Text getStartRowForExtent(KeyExtent extent) { Text start = extent.prevEndRow(); if (start != null) { start = new Text(start); start.append(byte0, 0, 1); } return start; } BulkImporter(ServerContext context, long tid, String tableId, boolean setTime); static List<String> bulkLoad(ServerContext context, long tid, String tableId,
      List<String> files, boolean setTime); AssignmentStats importFiles(List<String> files); static List<TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager fs,
      TabletLocator locator, Path file); static List<TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager fs,
      TabletLocator locator, Path file, KeyExtent failed); static List<TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager vm,
      TabletLocator locator, Path file, Text startRow, Text endRow); }
BulkImporter { protected static Text getStartRowForExtent(KeyExtent extent) { Text start = extent.prevEndRow(); if (start != null) { start = new Text(start); start.append(byte0, 0, 1); } return start; } BulkImporter(ServerContext context, long tid, String tableId, boolean setTime); static List<String> bulkLoad(ServerContext context, long tid, String tableId,
      List<String> files, boolean setTime); AssignmentStats importFiles(List<String> files); static List<TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager fs,
      TabletLocator locator, Path file); static List<TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager fs,
      TabletLocator locator, Path file, KeyExtent failed); static List<TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager vm,
      TabletLocator locator, Path file, Text startRow, Text endRow);  }