Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::KeyRecipe::Part.
An ssformat key is composed of a sequence of tag numbers and key column
values. Part represents a single tag or key column value.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#identifier
def identifier() -> ::String-
(::String) —
identifieris the name of the column or query parameter.Note: The following fields are mutually exclusive:
identifier,value,random. If a field in that set is populated, all other fields in the set will automatically be cleared.
#identifier=
def identifier=(value) -> ::String-
value (::String) —
identifieris the name of the column or query parameter.Note: The following fields are mutually exclusive:
identifier,value,random. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) —
identifieris the name of the column or query parameter.Note: The following fields are mutually exclusive:
identifier,value,random. If a field in that set is populated, all other fields in the set will automatically be cleared.
#null_order
def null_order() -> ::Google::Cloud::Spanner::V1::KeyRecipe::Part::NullOrder-
(::Google::Cloud::Spanner::V1::KeyRecipe::Part::NullOrder) — How NULLs are represented in the encoded key part. Only present if
tagis zero.
#null_order=
def null_order=(value) -> ::Google::Cloud::Spanner::V1::KeyRecipe::Part::NullOrder-
value (::Google::Cloud::Spanner::V1::KeyRecipe::Part::NullOrder) — How NULLs are represented in the encoded key part. Only present if
tagis zero.
-
(::Google::Cloud::Spanner::V1::KeyRecipe::Part::NullOrder) — How NULLs are represented in the encoded key part. Only present if
tagis zero.
#order
def order() -> ::Google::Cloud::Spanner::V1::KeyRecipe::Part::Order-
(::Google::Cloud::Spanner::V1::KeyRecipe::Part::Order) — Whether the key column is sorted ascending or descending. Only present
if
tagis zero.
#order=
def order=(value) -> ::Google::Cloud::Spanner::V1::KeyRecipe::Part::Order-
value (::Google::Cloud::Spanner::V1::KeyRecipe::Part::Order) — Whether the key column is sorted ascending or descending. Only present
if
tagis zero.
-
(::Google::Cloud::Spanner::V1::KeyRecipe::Part::Order) — Whether the key column is sorted ascending or descending. Only present
if
tagis zero.
#random
def random() -> ::Boolean-
(::Boolean) — If true, the client is responsible to fill in the value randomly.
It's relevant only for the INT64 type.
Note: The following fields are mutually exclusive:
random,identifier,value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#random=
def random=(value) -> ::Boolean-
value (::Boolean) — If true, the client is responsible to fill in the value randomly.
It's relevant only for the INT64 type.
Note: The following fields are mutually exclusive:
random,identifier,value. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Boolean) — If true, the client is responsible to fill in the value randomly.
It's relevant only for the INT64 type.
Note: The following fields are mutually exclusive:
random,identifier,value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#struct_identifiers
def struct_identifiers() -> ::Array<::Integer>-
(::Array<::Integer>) — It is a repeated field to support fetching key columns from nested
structs, such as
STRUCTquery parameters.
#struct_identifiers=
def struct_identifiers=(value) -> ::Array<::Integer>-
value (::Array<::Integer>) — It is a repeated field to support fetching key columns from nested
structs, such as
STRUCTquery parameters.
-
(::Array<::Integer>) — It is a repeated field to support fetching key columns from nested
structs, such as
STRUCTquery parameters.
#tag
def tag() -> ::Integer-
(::Integer) — If non-zero,
tagis the only field present in thisPart. The part is encoded by appendingtagto the ssformat key.
#tag=
def tag=(value) -> ::Integer-
value (::Integer) — If non-zero,
tagis the only field present in thisPart. The part is encoded by appendingtagto the ssformat key.
-
(::Integer) — If non-zero,
tagis the only field present in thisPart. The part is encoded by appendingtagto the ssformat key.
#type
def type() -> ::Google::Cloud::Spanner::V1::Type-
(::Google::Cloud::Spanner::V1::Type) — The type of the key part. Only present if
tagis zero.
#type=
def type=(value) -> ::Google::Cloud::Spanner::V1::Type-
value (::Google::Cloud::Spanner::V1::Type) — The type of the key part. Only present if
tagis zero.
-
(::Google::Cloud::Spanner::V1::Type) — The type of the key part. Only present if
tagis zero.
#value
def value() -> ::Google::Protobuf::Value-
(::Google::Protobuf::Value) — The constant value of the key part.
It is present when query uses a constant as a part of the key.
Note: The following fields are mutually exclusive:
value,identifier,random. If a field in that set is populated, all other fields in the set will automatically be cleared.
#value=
def value=(value) -> ::Google::Protobuf::Value-
value (::Google::Protobuf::Value) — The constant value of the key part.
It is present when query uses a constant as a part of the key.
Note: The following fields are mutually exclusive:
value,identifier,random. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Value) — The constant value of the key part.
It is present when query uses a constant as a part of the key.
Note: The following fields are mutually exclusive:
value,identifier,random. If a field in that set is populated, all other fields in the set will automatically be cleared.