Cloud Bigtable V2 Client - Class Map (2.1.0)

Reference documentation and code samples for the Cloud Bigtable V2 Client class Map.

A mapping of keys to values of a given type.

Values of type Map are stored in a Value.array_value where each entry is another Value.array_value with two elements (the key and the value, in that order). Normally encoded Map values won't have repeated keys, however, clients are expected to handle the case in which they do. If the same key appears multiple times, the last value takes precedence.

Generated from protobuf message google.bigtable.v2.Type.Map

Namespace

Google \ Cloud \ Bigtable \ V2 \ Type

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key_type Google\Cloud\Bigtable\V2\Type

The type of a map key. Only Bytes, String, and Int64 are allowed as key types.

↳ value_type Google\Cloud\Bigtable\V2\Type

The type of the values in a map.

getKeyType

The type of a map key.

Only Bytes, String, and Int64 are allowed as key types.

Returns
Type Description
Google\Cloud\Bigtable\V2\Type|null

hasKeyType

clearKeyType

setKeyType

The type of a map key.

Only Bytes, String, and Int64 are allowed as key types.

Parameter
Name Description
var Google\Cloud\Bigtable\V2\Type
Returns
Type Description
$this

getValueType

The type of the values in a map.

Returns
Type Description
Google\Cloud\Bigtable\V2\Type|null

hasValueType

clearValueType

setValueType

The type of the values in a map.

Parameter
Name Description
var Google\Cloud\Bigtable\V2\Type
Returns
Type Description
$this