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 from the range. If neither field is set, interpreted as the 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
Set row range with the inclusive upper and lower bounds.
-
#from(key, inclusive: true) ⇒ Google::Cloud::Bigtable::RowRange
Set row range with the lower bound.
-
#of(from_key, to_key) ⇒ Google::Cloud::Bigtable::RowRange
Set row range with the inclusive lower and the exclusive upper bound.
-
#to(key, inclusive: false) ⇒ Google::Cloud::Bigtable::RowRange
Set row range with the upper bound.
Instance Method Details
#between(from_key, to_key) ⇒ Google::Cloud::Bigtable::RowRange
Set row range with the inclusive upper and lower bounds.
141 142 143 |
# File 'lib/google/cloud/bigtable/row_range.rb', line 141 def between from_key, to_key from(from_key).to(to_key, inclusive: true) end |
#from(key, inclusive: true) ⇒ Google::Cloud::Bigtable::RowRange
Set row range with the lower bound.
85 86 87 88 89 90 91 92 |
# File 'lib/google/cloud/bigtable/row_range.rb', line 85 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
Set row range with the inclusive lower and the exclusive upper bound.
160 161 162 |
# File 'lib/google/cloud/bigtable/row_range.rb', line 160 def of from_key, to_key from(from_key).to(to_key) end |
#to(key, inclusive: false) ⇒ Google::Cloud::Bigtable::RowRange
Set row range with the upper bound.
117 118 119 120 121 122 123 124 |
# File 'lib/google/cloud/bigtable/row_range.rb', line 117 def to key, inclusive: false if inclusive @grpc.end_key_closed = key else @grpc.end_key_open = key end self end |