congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TimePartitioning.fromPb
Code IndexAdd Tabnine to your IDE (free)

How to use
fromPb
method
in
com.google.cloud.bigquery.TimePartitioning

Best Java code snippets using com.google.cloud.bigquery.TimePartitioning.fromPb (Showing top 10 results out of 315)

origin: googleapis/google-cloud-java

@Test
public void testToAndFromPb() {
 compareTimePartitioning(TIME_PARTITIONING, TimePartitioning.fromPb(TIME_PARTITIONING.toPb()));
 TimePartitioning partitioning = TimePartitioning.of(TYPE);
 compareTimePartitioning(partitioning, TimePartitioning.fromPb(partitioning.toPb()));
}
origin: googleapis/google-cloud-java

 @SuppressWarnings("unchecked")
 static StandardTableDefinition fromPb(Table tablePb) {
  Builder builder = newBuilder().table(tablePb);
  if (tablePb.getNumRows() != null) {
   builder.setNumRows(tablePb.getNumRows().longValue());
  }
  if (tablePb.getStreamingBuffer() != null) {
   builder.setStreamingBuffer(StreamingBuffer.fromPb(tablePb.getStreamingBuffer()));
  }
  if (tablePb.getTimePartitioning() != null) {
   builder.setTimePartitioning(TimePartitioning.fromPb(tablePb.getTimePartitioning()));
  }
  if (tablePb.getClustering() != null) {
   builder.setClustering(Clustering.fromPb(tablePb.getClustering()));
  }
  return builder.setNumBytes(tablePb.getNumBytes()).setLocation(tablePb.getLocation()).build();
 }
}
origin: googleapis/google-cloud-java

this.timePartitioning = TimePartitioning.fromPb(queryConfigurationPb.getTimePartitioning());
origin: googleapis/google-cloud-java

this.timePartitioning = TimePartitioning.fromPb(loadConfigurationPb.getTimePartitioning());
origin: googleapis/google-cloud-java

this.timePartitioning = TimePartitioning.fromPb(loadConfigurationPb.getTimePartitioning());
origin: com.google.cloud/gcloud-java-bigquery

private Builder(Table tablePb) {
 super(tablePb);
 if (tablePb.getNumRows() != null) {
  this.numRows(tablePb.getNumRows().longValue());
 }
 this.numBytes = tablePb.getNumBytes();
 this.location = tablePb.getLocation();
 if (tablePb.getStreamingBuffer() != null) {
  this.streamingBuffer = StreamingBuffer.fromPb(tablePb.getStreamingBuffer());
 }
 if (tablePb.getTimePartitioning() != null) {
  this.timePartitioning = TimePartitioning.fromPb(tablePb.getTimePartitioning());
 }
}
origin: com.google.cloud/google-cloud-bigquery

 @SuppressWarnings("unchecked")
 static StandardTableDefinition fromPb(Table tablePb) {
  Builder builder = newBuilder().table(tablePb);
  if (tablePb.getNumRows() != null) {
   builder.setNumRows(tablePb.getNumRows().longValue());
  }
  if (tablePb.getStreamingBuffer() != null) {
   builder.setStreamingBuffer(StreamingBuffer.fromPb(tablePb.getStreamingBuffer()));
  }
  if (tablePb.getTimePartitioning() != null) {
   builder.setTimePartitioning(TimePartitioning.fromPb(tablePb.getTimePartitioning()));
  }
  if (tablePb.getClustering() != null) {
   builder.setClustering(Clustering.fromPb(tablePb.getClustering()));
  }
  return builder.setNumBytes(tablePb.getNumBytes()).setLocation(tablePb.getLocation()).build();
 }
}
origin: com.google.cloud/google-cloud-bigquery

this.timePartitioning = TimePartitioning.fromPb(queryConfigurationPb.getTimePartitioning());
origin: com.google.cloud/google-cloud-bigquery

this.timePartitioning = TimePartitioning.fromPb(loadConfigurationPb.getTimePartitioning());
origin: com.google.cloud/google-cloud-bigquery

this.timePartitioning = TimePartitioning.fromPb(loadConfigurationPb.getTimePartitioning());
com.google.cloud.bigqueryTimePartitioningfromPb

Popular methods of TimePartitioning

  • of
    Returns a TimePartitioning object given the time partitioning type and the partition's expiration in
  • toPb
  • getExpirationMs
    Returns the number of milliseconds for which to keep the storage for a partition. When expired, the
  • getField
    If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partiti
  • getRequirePartitionFilter
    If set to true, queries over this table require a partition filter (that can be used for partition e
  • getType
    Returns the time partitioning type. Currently, the only type supported is Type#DAY, which will gener
  • newBuilder
    Returns a TimePartitioning object given the time partitioning type. Currently, the only type support
  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JList (javax.swing)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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