public static class TimePartition
Convenience methods for creating TimePartitioning.
Namespace
Google.Cloud.BigQuery.V2Assembly
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 | |
---|---|
Name | Description |
expiration | Nullable<TimeSpan> The expiration duration for each partition, if any. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
expiration | Nullable<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. |