Skip to content

Commit

Permalink
code format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
elisheva-qlogic committed Dec 19, 2018
1 parent 5cc4f15 commit 7ad20e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public static void main(String... args) throws Exception {
}
}

public static Table createTable(BigtableTableAdminClient adminClient, String TABLE_ID,
String COLUMN_FAMILY_ID) {
public static Table createTable(
BigtableTableAdminClient adminClient, String TABLE_ID, String COLUMN_FAMILY_ID) {
// [START creating_a_table]
if (adminClient.exists(TABLE_ID)) {
System.out.println("Deleting existing table");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ public static void beforeClass() throws IOException {
return;
}
BigtableDataSettings settings =
BigtableDataSettings.newBuilder().setInstanceName(InstanceName.parse(targetInstance))
BigtableDataSettings.newBuilder()
.setInstanceName(InstanceName.parse(targetInstance))
.build();
dataClient = BigtableDataClient.create(settings);
BigtableTableAdminSettings adminSettings = BigtableTableAdminSettings.newBuilder()
.setInstanceName(com.google.bigtable.admin.v2.InstanceName.parse(targetInstance)).build();
BigtableTableAdminSettings adminSettings =
BigtableTableAdminSettings.newBuilder()
.setInstanceName(com.google.bigtable.admin.v2.InstanceName.parse(targetInstance))
.build();
adminClient = BigtableTableAdminClient.create(adminSettings);
if (!adminClient.exists(TABLE_ID)) {
adminClient.createTable(CreateTableRequest.of(TABLE_ID).addFamily(COLUMN_FAMILY_ID));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public static void beforeClass() throws IOException {
return;
}
BigtableTableAdminSettings adminSettings =
BigtableTableAdminSettings.newBuilder().setInstanceName(InstanceName.parse(targetInstance))
BigtableTableAdminSettings.newBuilder()
.setInstanceName(InstanceName.parse(targetInstance))
.build();
adminClient = BigtableTableAdminClient.create(adminSettings);
if (!adminClient.exists(TABLE_ID)) {
Expand Down

0 comments on commit 7ad20e5

Please sign in to comment.