Google BigQuery v2 API - Class TimePartition (3.9.0)

public static class TimePartition

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

Convenience methods for creating TimePartitioning.

Inheritance

object > TimePartition

Namespace

Google.Cloud.BigQuery.V2

Assembly

Google.Cloud.BigQuery.V2.dll

Methods

CreateDailyPartitioning(TimeSpan?)

public static TimePartitioning CreateDailyPartitioning(TimeSpan? expiration)

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

Parameter
Name Description
expiration TimeSpan

The expiration duration for each partition, if any.

Returns
Type Description
TimePartitioning

A TimePartitioning representing a daily partitioning.

CreateDailyPartitioning(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
Name Description
expiration TimeSpan

The expiration duration for each partition, if any.

field string

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

Returns
Type Description
TimePartitioning

A TimePartitioning representing a daily partitioning.