@Test public void testAdaptWithSplitKeys() { byte[][] splits = new byte[][] { Bytes.toBytes("AAA"), Bytes.toBytes("BBB"), Bytes.toBytes("CCC"), }; TableDescriptor desc = TableDescriptorBuilder.newBuilder(TableName.valueOf(TABLE_ID)).build(); CreateTableRequest actualRequest = TableAdapter2x.adapt(desc, splits); CreateTableRequest expectedRequest = CreateTableRequest.of(TABLE_ID); TableAdapter.addSplitKeys(splits, expectedRequest); Assert.assertEquals( expectedRequest.toProto(PROJECT_ID, INSTANCE_ID), actualRequest.toProto(PROJECT_ID, INSTANCE_ID)); }
public static CreateTableRequest adapt(TableDescriptor desc, byte[][] splitKeys) { return TableAdapter.adapt(new HTableDescriptor(desc), splitKeys); }
TableAdapter2x { public static CreateTableRequest adapt(TableDescriptor desc, byte[][] splitKeys) { return TableAdapter.adapt(new HTableDescriptor(desc), splitKeys); } }
TableAdapter2x { public static CreateTableRequest adapt(TableDescriptor desc, byte[][] splitKeys) { return TableAdapter.adapt(new HTableDescriptor(desc), splitKeys); } private  TableAdapter2x(); }
TableAdapter2x { public static CreateTableRequest adapt(TableDescriptor desc, byte[][] splitKeys) { return TableAdapter.adapt(new HTableDescriptor(desc), splitKeys); } private  TableAdapter2x(); static CreateTableRequest adapt(TableDescriptor desc, byte[][] splitKeys); static HColumnDescriptor toHColumnDescriptor(ColumnFamilyDescriptor column); static TableDescriptor adapt(Table table); }
TableAdapter2x { public static CreateTableRequest adapt(TableDescriptor desc, byte[][] splitKeys) { return TableAdapter.adapt(new HTableDescriptor(desc), splitKeys); } private  TableAdapter2x(); static CreateTableRequest adapt(TableDescriptor desc, byte[][] splitKeys); static HColumnDescriptor toHColumnDescriptor(ColumnFamilyDescriptor column); static TableDescriptor adapt(Table table);  }