class BigQueryOutputConfiguration {

  static TableReference getTableReference(Configuration conf) throws IOException {
    // Ensure the BigQuery output information is valid.
    String projectId = getProjectId(conf);
    String datasetId = getMandatoryConfig(conf, OUTPUT_DATASET_ID);
    String tableId = getMandatoryConfig(conf, OUTPUT_TABLE_ID);

    return new TableReference().setProjectId(projectId).setDatasetId(datasetId).setTableId(tableId);
  }

}