Class TimePartition (2.3.0)

public static class TimePartition

Convenience methods for creating 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
TimePartitioning

A 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
TimePartitioning

A TimePartitioning representing a daily partitioning.