Class TimePartition (3.1.0)

public static 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.