Google BigQuery v2 API - Class TimePartition (3.3.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

GoogleGoogle.CloudGoogle.Cloud.BigQueryV2

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
NameDescription
expirationTimeSpan

The expiration duration for each partition, if any.

Returns
TypeDescription
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
NameDescription
expirationTimeSpan

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.