Class: Google::Cloud::Bigtable::RowRange
- Inherits:
-
Object
- Object
- Google::Cloud::Bigtable::RowRange
- Defined in:
- lib/google/cloud/bigtable/row_range.rb
Overview
RowRange
Specifies a contiguous range of rows.
- From key bound : The row key at which to begin the range. If neither field is set, interpreted as an empty string, inclusive.
- End key bound: The row key at which to end the range. If neither field is set, interpreted as the infinite row key, exclusive.
Instance Method Summary collapse
-
#between(from_key, to_key) ⇒ Google::Cloud::Bigtable::RowRange
Sets a row range with inclusive upper and lower bounds.
-
#from(key, inclusive: true) ⇒ Google::Cloud::Bigtable::RowRange
Sets a row range with a lower bound.
-
#of(from_key, to_key) ⇒ Google::Cloud::Bigtable::RowRange
Sets a row range with an inclusive lower bound and an exclusive upper bound.
-
#to(key, inclusive: false) ⇒ Google::Cloud::Bigtable::RowRange
Sets a row range with an upper bound.
Instance Method Details
#between(from_key, to_key) ⇒ Google::Cloud::Bigtable::RowRange
Sets a row range with inclusive upper and lower bounds.
145 146 147 |
# File 'lib/google/cloud/bigtable/row_range.rb', line 145 def between from_key, to_key from(from_key).to(to_key, inclusive: true) end |
#from(key, inclusive: true) ⇒ Google::Cloud::Bigtable::RowRange
Sets a row range with a lower bound.
87 88 89 90 91 92 93 94 |
# File 'lib/google/cloud/bigtable/row_range.rb', line 87 def from key, inclusive: true if inclusive @grpc.start_key_closed = key else @grpc.start_key_open = key end self end |
#of(from_key, to_key) ⇒ Google::Cloud::Bigtable::RowRange
Sets a row range with an inclusive lower bound and an exclusive upper bound.
165 166 167 |
# File 'lib/google/cloud/bigtable/row_range.rb', line 165 def of from_key, to_key from(from_key).to(to_key) end |
#to(key, inclusive: false) ⇒ Google::Cloud::Bigtable::RowRange
Sets a row range with an upper bound.
120 121 122 123 124 125 126 127 |
# File 'lib/google/cloud/bigtable/row_range.rb', line 120 def to key, inclusive: false if inclusive @grpc.end_key_closed = key else @grpc.end_key_open = key end self end |