```j影音a import com.google.cloud.bigquery.BigQuery; import com.google.cloud.bigquery.BigQueryException; import com.google.cloud.bigquery.BigQueryOptions; import com.google.cloud.bigquery.Job; import com.google.cloud.bigquery.JobInfo; import com.google.cloud.bigquery.QueryJobConfiguration; import com.google.cloud.bigquery.TableResult; public class QueryUsingLegacySql { public static void main(String[] args) { // TODO(developer): Replace these variables before running the sample. String query = String.format( "SELECT accountNumber, bankCode FROM `bigquery-public-data.transactions.us_states`" + " WHERE accountNumber LIKE '%06530465%'"); String projectId = "bigquery-public-data"; queryUsingLegacySql(projectId, query); } public static void queryUsingLegacySql(String projectId, String query) { try { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService(); QueryJobConfiguration queryConfig = QueryJobConfiguration.newBuilder(query) .setUseLegacySql(true) .build(); // Example query to find customers by name from the "us_states" dataset. Job job = bigquery.create(JobInfo.of(queryConfig)); // Wait for the query to complete. job = job.waitFor(); // Check for errors if (job.isDone()) { TableResult results = job.getQueryResults(); results .iterateAll() .forEach(row -> row.forEach(val -> System.out.printf("%s,", val.toString()))); } else { System.out.println("Job not executed since it no longer exists."); } } catch (BigQueryException | InterruptedException e) { System.out.println("Query not performed \n" + e.toString()); } } } ```
Xbox Live 商店:Xbox One、Xbox Series X|S、PC(通过 Windows 商店) Steam:PC Epic Games Store:PC 物理平台: Xbox One 光盘:Xbox One、Xbox One S、Xbox One X Xbox Series X|S 光盘:Xbox Series X、Xbox Series S Game Pass 订阅: Xbox Game Pass:Xbox One、Xbox Series X|S、PC(通过 Xbox 应用程序或 Windows 商店) Xbox Game Pass Ultimate:Xbox One、Xbox Series X|S、PC(通过 Xbox 应用程序或 Windows 商店) 注意: Halo 5:守护者只能在 Xbox One 和 PC 平台上玩。 PC 版本仅通过 Windows 商店和 Steam 提供。