public void createTable ( ) { // [START bigtable_hw_create_table_veneer] // Checks if table exists, creates table if does not exist. if ( ! adminClient . exists ( tableId ) ) { System . out . println ( "Creating table: " + tableId ) ; CreateTableRequest createTableRequest = CreateTableRequest . of ( tableId ) . addFamily ( COLUMN_FAMILY ) ; adminClient . createTable ( createTableRequest ) ; System . out . printf ( "Table %s created successfully%n" , tableId ) ; } // [END bigtable_hw_create_table_veneer] }
Demonstrates how to create a table .