@Test public void testAdaptWithTable() { int maxVersion = 1; GCRules.GCRule gcRule = GCRULES.maxVersions(maxVersion); ColumnFamily columnFamily = ColumnFamily.newBuilder().setGcRule(gcRule.toProto()).build(); Table table = Table.newBuilder() .setName(TABLE_NAME) .putColumnFamilies(COLUMN_FAMILY, columnFamily) .build(); TableDescriptor actualTableDesc = TableAdapter2x.adapt(com.google.cloud.bigtable.admin.v2.models.Table.fromProto(table)); TableDescriptor expected = new HTableDescriptor(TableName.valueOf(TABLE_ID)) .addFamily(new HColumnDescriptor(COLUMN_FAMILY)); Assert.assertEquals(expected, actualTableDesc); }
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);  }