@Test public void replEntryMutation() { Status stat = Status.newBuilder().setBegin(0).setEnd(0).setInfiniteEnd(true) .setCreatedTime(System.currentTimeMillis()).build(); String file = "file: Path filePath = new Path(file); Text row = new Text(filePath.toString()); KeyExtent extent = new KeyExtent(TableId.of("1"), new Text("b"), new Text("a")); Mutation m = ReplicationTableUtil.createUpdateMutation(filePath, ProtobufUtil.toValue(stat), extent); assertEquals(new Text(ReplicationSection.getRowPrefix() + row), new Text(m.getRow())); assertEquals(1, m.getUpdates().size()); ColumnUpdate col = m.getUpdates().get(0); assertEquals(ReplicationSection.COLF, new Text(col.getColumnFamily())); assertEquals(extent.tableId().canonical(), new Text(col.getColumnQualifier()).toString()); assertEquals(0, col.getColumnVisibility().length); assertArrayEquals(stat.toByteArray(), col.getValue()); }
static Mutation createUpdateMutation(Path file, Value v, KeyExtent extent) { return createUpdateMutation(new Text(ReplicationSection.getRowPrefix() + file), v, extent); }
ReplicationTableUtil { static Mutation createUpdateMutation(Path file, Value v, KeyExtent extent) { return createUpdateMutation(new Text(ReplicationSection.getRowPrefix() + file), v, extent); } }
ReplicationTableUtil { static Mutation createUpdateMutation(Path file, Value v, KeyExtent extent) { return createUpdateMutation(new Text(ReplicationSection.getRowPrefix() + file), v, extent); } private  ReplicationTableUtil(); }
ReplicationTableUtil { static Mutation createUpdateMutation(Path file, Value v, KeyExtent extent) { return createUpdateMutation(new Text(ReplicationSection.getRowPrefix() + file), v, extent); } private  ReplicationTableUtil(); synchronized static void configureMetadataTable(AccumuloClient client, String tableName); static void updateFiles(ClientContext context, KeyExtent extent, String file,
      Status stat); }
ReplicationTableUtil { static Mutation createUpdateMutation(Path file, Value v, KeyExtent extent) { return createUpdateMutation(new Text(ReplicationSection.getRowPrefix() + file), v, extent); } private  ReplicationTableUtil(); synchronized static void configureMetadataTable(AccumuloClient client, String tableName); static void updateFiles(ClientContext context, KeyExtent extent, String file,
      Status stat); static final String COMBINER_NAME; static final String STATUS_FORMATTER_CLASS_NAME; }