Google BigQuery v2 API - Class TimePartition (3.2.0)

Stay organized with collections Save and categorize content based on your preferences.
public static class TimePartition

Reference documentation and code samples for the Google BigQuery v2 API class TimePartition.

Convenience methods for creating Google.Apis.Bigquery.v2.Data.TimePartitioning.

Inheritance

Object > TimePartition

Namespace

Google.Cloud.BigQuery.V2

Assembly

Google.Cloud.BigQuery.V2.dll

Methods

CreateDailyPartitioning(Nullable<TimeSpan>)

public static TimePartitioning CreateDailyPartitioning(TimeSpan? expiration)

Returns a daily partitioning scheme with an optional per-partition expiration.

Parameter
NameDescription
expirationNullable<TimeSpan>

The expiration duration for each partition, if any.

Returns
TypeDescription
Google.Apis.Bigquery.v2.Data.TimePartitioning

A Google.Apis.Bigquery.v2.Data.TimePartitioning representing a daily partitioning.

CreateDailyPartitioning(Nullable<TimeSpan>, String)

public static TimePartitioning CreateDailyPartitioning(TimeSpan? expiration, string field)

Returns a daily partitioning scheme with an optional per-partition expiration, and a field name.

Parameters
NameDescription
expirationNullable<TimeSpan>

The expiration duration for each partition, if any.

fieldString

The field name to partition by, if any. If this is null, the table will be partitioned by a pseudo-column called _PARTITIONTIME.

Returns
TypeDescription
Google.Apis.Bigquery.v2.Data.TimePartitioning

A Google.Apis.Bigquery.v2.Data.TimePartitioning representing a daily partitioning.