private static void listTables(Bigquery service, String projectNumber, String datasetId) throws IOException {
Bigquery.Tables.List listTablesReply = service.tables().list(projectNumber, datasetId);
TableList tableList = listTablesReply.execute();
if (tableList.getTables() != null) {
List tables = tableList.getTables();
System.out.println("Tables list:");
for (TableList.Tables table : tables) {
System.out.format("%s\n", table.getId());
}
}
}
I think this will help us in this case :)
source
share