Google Cloud Dataform V1beta1 Client - Class Relation (0.4.6)

Reference documentation and code samples for the Google Cloud Dataform V1beta1 Client class Relation.

Represents a database relation.

Generated from protobuf message google.cloud.dataform.v1beta1.CompilationResultAction.Relation

Namespace

Google \ Cloud \ Dataform \ V1beta1 \ CompilationResultAction

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ dependency_targets array<Google\Cloud\Dataform\V1beta1\Target>

A list of actions that this action depends on.

↳ disabled bool

Whether this action is disabled (i.e. should not be run).

↳ tags array

Arbitrary, user-defined tags on this action.

↳ relation_descriptor Google\Cloud\Dataform\V1beta1\RelationDescriptor

Descriptor for the relation and its columns.

↳ relation_type int

The type of this relation.

↳ select_query string

The SELECT query which returns rows which this relation should contain.

↳ pre_operations array

SQL statements to be executed before creating the relation.

↳ post_operations array

SQL statements to be executed after creating the relation.

↳ incremental_table_config Relation\IncrementalTableConfig

Configures INCREMENTAL_TABLE settings for this relation. Only set if relation_type is INCREMENTAL_TABLE.

↳ partition_expression string

The SQL expression used to partition the relation.

↳ cluster_expressions array

A list of columns or SQL expressions used to cluster the table.

↳ partition_expiration_days int

Sets the partition expiration in days.

↳ require_partition_filter bool

Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.

↳ additional_options array|Google\Protobuf\Internal\MapField

Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.

getDependencyTargets

A list of actions that this action depends on.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDependencyTargets

A list of actions that this action depends on.

Parameter
Name Description
var array<Google\Cloud\Dataform\V1beta1\Target>
Returns
Type Description
$this

getDisabled

Whether this action is disabled (i.e. should not be run).

Returns
Type Description
bool

setDisabled

Whether this action is disabled (i.e. should not be run).

Parameter
Name Description
var bool
Returns
Type Description
$this

getTags

Arbitrary, user-defined tags on this action.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTags

Arbitrary, user-defined tags on this action.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getRelationDescriptor

Descriptor for the relation and its columns.

Returns
Type Description
Google\Cloud\Dataform\V1beta1\RelationDescriptor|null

hasRelationDescriptor

clearRelationDescriptor

setRelationDescriptor

Descriptor for the relation and its columns.

Parameter
Name Description
var Google\Cloud\Dataform\V1beta1\RelationDescriptor
Returns
Type Description
$this

getRelationType

The type of this relation.

Returns
Type Description
int

setRelationType

The type of this relation.

Parameter
Name Description
var int
Returns
Type Description
$this

getSelectQuery

The SELECT query which returns rows which this relation should contain.

Returns
Type Description
string

setSelectQuery

The SELECT query which returns rows which this relation should contain.

Parameter
Name Description
var string
Returns
Type Description
$this

getPreOperations

SQL statements to be executed before creating the relation.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPreOperations

SQL statements to be executed before creating the relation.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getPostOperations

SQL statements to be executed after creating the relation.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPostOperations

SQL statements to be executed after creating the relation.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getIncrementalTableConfig

Configures INCREMENTAL_TABLE settings for this relation. Only set if relation_type is INCREMENTAL_TABLE.

Returns
Type Description
Relation\IncrementalTableConfig|null

hasIncrementalTableConfig

clearIncrementalTableConfig

setIncrementalTableConfig

Configures INCREMENTAL_TABLE settings for this relation. Only set if relation_type is INCREMENTAL_TABLE.

Parameter
Name Description
var Relation\IncrementalTableConfig
Returns
Type Description
$this

getPartitionExpression

The SQL expression used to partition the relation.

Returns
Type Description
string

setPartitionExpression

The SQL expression used to partition the relation.

Parameter
Name Description
var string
Returns
Type Description
$this

getClusterExpressions

A list of columns or SQL expressions used to cluster the table.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setClusterExpressions

A list of columns or SQL expressions used to cluster the table.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getPartitionExpirationDays

Sets the partition expiration in days.

Returns
Type Description
int

setPartitionExpirationDays

Sets the partition expiration in days.

Parameter
Name Description
var int
Returns
Type Description
$this

getRequirePartitionFilter

Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.

Returns
Type Description
bool

setRequirePartitionFilter

Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.

Parameter
Name Description
var bool
Returns
Type Description
$this

getAdditionalOptions

Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.

Returns
Type Description
Google\Protobuf\Internal\MapField

setAdditionalOptions

Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this