Class: Google::Apis::SpannerV1::KeySet
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SpannerV1::KeySet
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb 
Overview
KeySet defines a collection of Cloud Spanner keys and/or key ranges. All the
keys are expected to be in the same table or index. The keys need not be
sorted in any particular way. If the same key is specified multiple times in
the set (for example if two ranges, two keys, or a key and a range overlap),
Cloud Spanner behaves as if the key were only specified once.
Instance Attribute Summary collapse
- 
  
    
      #all  ⇒ Boolean 
    
    
      (also: #all?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
For convenience
allcan be set totrueto indicate that thisKeySetmatches all keys in the table or index. - 
  
    
      #keys  ⇒ Array<Array<Object>> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of specific keys.
 - 
  
    
      #ranges  ⇒ Array<Google::Apis::SpannerV1::KeyRange> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of key ranges.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ KeySet 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of KeySet.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ KeySet
Returns a new instance of KeySet.
      2270 2271 2272  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 2270 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#all ⇒ Boolean Also known as: all?
For convenience all can be set to true to indicate that this KeySet
matches all keys in the table or index. Note that any keys specified in keys
or ranges are only yielded once.
Corresponds to the JSON property all
      2254 2255 2256  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 2254 def all @all end  | 
  
#keys ⇒ Array<Array<Object>>
A list of specific keys. Entries in keys should have exactly as many
elements as there are columns in the primary or index key with which this 
KeySet is used. Individual key values are encoded as described here.
Corresponds to the JSON property keys
      2262 2263 2264  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 2262 def keys @keys end  | 
  
#ranges ⇒ Array<Google::Apis::SpannerV1::KeyRange>
A list of key ranges. See KeyRange for more information about key range
specifications.
Corresponds to the JSON property ranges
      2268 2269 2270  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 2268 def ranges @ranges end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2275 2276 2277 2278 2279  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 2275 def update!(**args) @all = args[:all] if args.key?(:all) @keys = args[:keys] if args.key?(:keys) @ranges = args[:ranges] if args.key?(:ranges) end  |