congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JobStatistics2.<init>
Code IndexAdd Tabnine 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)

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

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JFrame (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now