congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TimePartitioning.newBuilder
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: googleapis/google-cloud-java

/**
 * Returns a {@code TimePartitioning} object given the time partitioning type. Currently, the only
 * type supported is {@link Type#DAY}, which will generate one partition per day based on data
 * loading time. The partitions will not expire.
 */
public static TimePartitioning of(Type type) {
 return newBuilder(type).build();
}
origin: googleapis/google-cloud-java

/**
 * Returns a {@code TimePartitioning} object given the time partitioning type and the partition's
 * expiration in milliseconds.
 *
 * @param type the time partitioning type. Currently, the only type supported is {@link Type#DAY},
 *     which will generate one partition per day based on data loading time.
 * @param expirationMs the number of milliseconds for which to keep the storage for a partition
 */
public static TimePartitioning of(Type type, long expirationMs) {
 return newBuilder(type).setExpirationMs(expirationMs).build();
}
origin: googleapis/google-cloud-java

 static TimePartitioning fromPb(
   com.google.api.services.bigquery.model.TimePartitioning partitioningPb) {
  Long expirationMs = partitioningPb.getExpirationMs();
  if (Data.isNull(expirationMs)) {
   expirationMs = null;
  }
  return newBuilder(Type.valueOf(partitioningPb.getType()))
    .setExpirationMs(expirationMs)
    .setField(partitioningPb.getField())
    .setRequirePartitionFilter(partitioningPb.getRequirePartitionFilter())
    .build();
 }
}
origin: googleapis/google-cloud-java

@Test
public void testBuilder() {
 TimePartitioning partitioning = TimePartitioning.newBuilder(TYPE).build();
 assertEquals(TYPE, partitioning.getType());
 assertNull(partitioning.getExpirationMs());
 assertNull(partitioning.getRequirePartitionFilter());
 assertNull(partitioning.getField());
 partitioning = TimePartitioning.newBuilder(TYPE).setExpirationMs(100L).build();
 assertEquals(TYPE, partitioning.getType());
 assertEquals(100, (long) partitioning.getExpirationMs());
 assertNull(partitioning.getRequirePartitionFilter());
 assertNull(partitioning.getField());
}
origin: com.google.cloud/google-cloud-bigquery

/**
 * Returns a {@code TimePartitioning} object given the time partitioning type. Currently, the only
 * type supported is {@link Type#DAY}, which will generate one partition per day based on data
 * loading time. The partitions will not expire.
 */
public static TimePartitioning of(Type type) {
 return newBuilder(type).build();
}
origin: com.google.cloud/google-cloud-bigquery

/**
 * Returns a {@code TimePartitioning} object given the time partitioning type and the partition's
 * expiration in milliseconds.
 *
 * @param type the time partitioning type. Currently, the only type supported is {@link Type#DAY},
 *     which will generate one partition per day based on data loading time.
 * @param expirationMs the number of milliseconds for which to keep the storage for a partition
 */
public static TimePartitioning of(Type type, long expirationMs) {
 return newBuilder(type).setExpirationMs(expirationMs).build();
}
origin: com.google.cloud/google-cloud-bigquery

 static TimePartitioning fromPb(
   com.google.api.services.bigquery.model.TimePartitioning partitioningPb) {
  Long expirationMs = partitioningPb.getExpirationMs();
  if (Data.isNull(expirationMs)) {
   expirationMs = null;
  }
  return newBuilder(Type.valueOf(partitioningPb.getType()))
    .setExpirationMs(expirationMs)
    .setField(partitioningPb.getField())
    .setRequirePartitionFilter(partitioningPb.getRequirePartitionFilter())
    .build();
 }
}
com.google.cloud.bigqueryTimePartitioningnewBuilder

Javadoc

Returns a TimePartitioning object given the time partitioning type. Currently, the only type supported is Type#DAY, which will generate one partition per day based on data loading time.

Popular methods of TimePartitioning

  • of
    Returns a TimePartitioning object given the time partitioning type and the partition's expiration in
  • fromPb
  • 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
  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JFrame (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
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