Codota Logo
JobStatistics2.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.google.api.services.bigquery.model.JobStatistics2
constructor

Best Java code snippets using com.google.api.services.bigquery.model.JobStatistics2.<init> (Showing top 7 results out of 315)

  • Common ways to obtain JobStatistics2
private void myMethod () {
JobStatistics2 j =
  • Codota Iconnew JobStatistics2()
  • Codota IconJobStatistics jobStatistics;jobStatistics.getQuery()
  • Smart code suggestions by Codota
}
origin: googleapis/google-cloud-java

@Override
com.google.api.services.bigquery.model.JobStatistics toPb() {
 JobStatistics2 queryStatisticsPb = new JobStatistics2();
 queryStatisticsPb.setBillingTier(billingTier);
 queryStatisticsPb.setCacheHit(cacheHit);
origin: com.google.cloud/gcloud-java-bigquery

@Override
com.google.api.services.bigquery.model.JobStatistics toPb() {
 JobStatistics2 queryStatisticsPb = new JobStatistics2();
 queryStatisticsPb.setBillingTier(billingTier);
 queryStatisticsPb.setCacheHit(cacheHit);
 queryStatisticsPb.setTotalBytesBilled(totalBytesBilled);
 queryStatisticsPb.setTotalBytesProcessed(totalBytesProcessed);
 if (queryPlan != null) {
  queryStatisticsPb.setQueryPlan(Lists.transform(queryPlan, QueryStage.TO_PB_FUNCTION));
 }
 return super.toPb().setQuery(queryStatisticsPb);
}
origin: com.google.gcloud/gcloud-java-bigquery

@Override
com.google.api.services.bigquery.model.JobStatistics toPb() {
 JobStatistics2 queryStatisticsPb = new JobStatistics2();
 queryStatisticsPb.setBillingTier(billingTier);
 queryStatisticsPb.setCacheHit(cacheHit);
 queryStatisticsPb.setTotalBytesBilled(totalBytesBilled);
 queryStatisticsPb.setTotalBytesProcessed(totalBytesProcessed);
 if (queryPlan != null) {
  queryStatisticsPb.setQueryPlan(Lists.transform(queryPlan, QueryStage.TO_PB_FUNCTION));
 }
 return super.toPb().setQuery(queryStatisticsPb);
}
origin: com.google.cloud/google-cloud-bigquery

@Override
com.google.api.services.bigquery.model.JobStatistics toPb() {
 JobStatistics2 queryStatisticsPb = new JobStatistics2();
 queryStatisticsPb.setBillingTier(billingTier);
 queryStatisticsPb.setCacheHit(cacheHit);
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

JobStatistics2 queryStats = new JobStatistics2();
queryStats.setReferencedTables(ImmutableList.of(dryRunTable));
queryJobStats.setQuery(queryStats);
  new JobStatistics()
    .setQuery(
      new JobStatistics2()
        .setTotalBytesProcessed(100L)
        .setReferencedTables(ImmutableList.of(table.getTableReference()))));
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

@Test
public void testBigQueryQuerySourceEstimatedSize() throws Exception {
 List<TableRow> data =
   ImmutableList.of(
     new TableRow().set("name", "A").set("number", 10L),
     new TableRow().set("name", "B").set("number", 11L),
     new TableRow().set("name", "C").set("number", 12L));
 PipelineOptions options = PipelineOptionsFactory.create();
 BigQueryOptions bqOptions = options.as(BigQueryOptions.class);
 bqOptions.setProject("project");
 String stepUuid = "testStepUuid";
 String query = FakeBigQueryServices.encodeQuery(data);
 BigQueryQuerySource<TableRow> bqSource =
   BigQueryQuerySource.create(
     stepUuid,
     ValueProvider.StaticValueProvider.of(query),
     true /* flattenResults */,
     true /* useLegacySql */,
     fakeBqServices,
     TableRowJsonCoder.of(),
     BigQueryIO.TableRowParser.INSTANCE,
     QueryPriority.BATCH,
     null);
 fakeJobService.expectDryRunQuery(
   bqOptions.getProject(),
   query,
   new JobStatistics().setQuery(new JobStatistics2().setTotalBytesProcessed(100L)));
 assertEquals(100, bqSource.getEstimatedSizeBytes(bqOptions));
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

JobStatistics2 queryStats = new JobStatistics2();
queryStats.setReferencedTables(ImmutableList.of(dryRunTable));
queryJobStats.setQuery(queryStats);
  new JobStatistics()
    .setQuery(
      new JobStatistics2()
        .setTotalBytesProcessed(100L)
        .setReferencedTables(ImmutableList.of(queryTable))));
com.google.api.services.bigquery.modelJobStatistics2<init>

Popular methods of JobStatistics2

  • getTotalBytesProcessed
    [Output-only] Total bytes processed for the job.
  • setTotalBytesProcessed
    [Output-only] Total bytes processed for the job.
  • getBillingTier
    [Output-only] Billing tier for the job.
  • getCacheHit
    [Output-only] Whether the query result was fetched from the query cache.
  • getQueryPlan
    [Output-only] Describes execution plan for the query.
  • getReferencedTables
    [Output-only] Referenced tables for the job. Queries that reference more than 50 tables will not hav
  • getTotalBytesBilled
    [Output-only] Total bytes billed for the job.
  • setBillingTier
    [Output-only] Billing tier for the job.
  • setCacheHit
    [Output-only] Whether the query result was fetched from the query cache.
  • setQueryPlan
    [Output-only] Describes execution plan for the query.
  • setTotalBytesBilled
    [Output-only] Total bytes billed for the job.
  • setReferencedTables
    [Output-only] Referenced tables for the job. Queries that reference more than 50 tables will not hav
  • setTotalBytesBilled,
  • setReferencedTables,
  • getDdlOperationPerformed,
  • getDdlTargetTable,
  • getEstimatedBytesProcessed,
  • getNumDmlAffectedRows,
  • getSchema,
  • getStatementType,
  • getTimeline

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • BoxLayout (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now