Google BigQuery v2 API - Class DatasetExtensions (3.10.0)

public static class DatasetExtensions

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

Extension methods for making it easier to work with Dataset

Inheritance

object > DatasetExtensions

Namespace

Google.Cloud.BigQuery.V2

Assembly

Google.Cloud.BigQuery.V2.dll

Methods

GetDefaultPartitionExpiration(Dataset)

public static TimeSpan? GetDefaultPartitionExpiration(this Dataset dataset)

Gets the default partition expiration period for all partitioned tables created in the dataset. Partitioned tables will (by default) be automatically deleted this long after they are created, unless otherwise specified, such as by ExpirationTime. For partitioned tables, this values has priority over DefaultTableExpirationMs.

Parameter
Name Description
dataset Dataset

The dataset for which to set the expiration for. Must not be null.

Returns
Type Description
TimeSpan

GetDefaultTableExpiration(Dataset)

public static TimeSpan? GetDefaultTableExpiration(this Dataset dataset)

Gets the default expiration period for tables created in this dataset. Tables will (by default) be automatically deleted this long after they are created, unless otherwise specified, such as by ExpirationTime.

Parameter
Name Description
dataset Dataset

The dataset for which to set the expiration for. Must not be null.

Returns
Type Description
TimeSpan

SetDefaultPartitionExpiration(Dataset, TimeSpan?)

public static Dataset SetDefaultPartitionExpiration(this Dataset dataset, TimeSpan? expiration)

Gets the default partition expiration period for all partitioned tables created in the dataset. Partitioned tables will (by default) be automatically deleted this long after they are created, unless otherwise specified, such as by ExpirationTime. For partitioned tables, this values has priority over DefaultTableExpirationMs.

Parameters
Name Description
dataset Dataset

The dataset for which to set the expiration for. Must not be null.

expiration TimeSpan

The new expiration to be set.

Returns
Type Description
Dataset

The same dataset on which the change was made. To facilitate method chaining.

SetDefaultTableExpiration(Dataset, TimeSpan?)

public static Dataset SetDefaultTableExpiration(this Dataset dataset, TimeSpan? expiration)

Sets the default expiration period for tables created in this dataset. Tables will (by default) be automatically deleted this long after they are created, unless otherwise specified, such as by ExpirationTime.

Parameters
Name Description
dataset Dataset

The dataset for which to set the expiration for. Must not be null.

expiration TimeSpan

The new expiration to be set.

Returns
Type Description
Dataset

The same dataset on which the change was made. To facilitate method chaining.