Class: Google::Cloud::Bigtable::ColumnRange
- Inherits:
-
Object
- Object
- Google::Cloud::Bigtable::ColumnRange
- Defined in:
- lib/google/cloud/bigtable/column_range.rb
Overview
ColumnRange
Specifies a contiguous range of column qualifiers.
- Start qualifier bound : The qualifier at which to start the range. If neither field is set, interpreted as the empty string, inclusive.
- End qualifier bound: The qualifier at which to end the range. If neither field is set, interpreted as the infinite string qualifier, exclusive.
Instance Method Summary collapse
-
#between(from_qualifier, to_qualifier) ⇒ Google::Cloud::Bigtable::ColumnRange
Set column range with the inclusive upper and lower bound.
-
#family ⇒ String
Get column family name.
-
#family=(name) ⇒ Object
Set column family name.
-
#from(qualifier, inclusive: true) ⇒ Google::Cloud::Bigtable::ColumnRange
Set column range with the lower bound.
-
#initialize(family) ⇒ ColumnRange
constructor
Create qualifier range instance.
-
#of(from_qualifier, to_qualifier) ⇒ Google::Cloud::Bigtable::ColumnRange
Set column range with the inclusive upper and the exclusive lower bound.
-
#to(qualifier, inclusive: false) ⇒ Google::Cloud::Bigtable::ColumnRange
Set column range with the upper bound.
Constructor Details
#initialize(family) ⇒ ColumnRange
Create qualifier range instance.
56 57 58 |
# File 'lib/google/cloud/bigtable/column_range.rb', line 56 def initialize family @grpc = Google::Bigtable::V2::ColumnRange.new(family_name: family) end |
Instance Method Details
#between(from_qualifier, to_qualifier) ⇒ Google::Cloud::Bigtable::ColumnRange
Set column range with the inclusive upper and lower bound.
154 155 156 |
# File 'lib/google/cloud/bigtable/column_range.rb', line 154 def between from_qualifier, to_qualifier from(from_qualifier).to(to_qualifier, inclusive: true) end |
#family ⇒ String
Get column family name
64 65 66 |
# File 'lib/google/cloud/bigtable/column_range.rb', line 64 def family @grpc.family_name end |
#family=(name) ⇒ Object
Set column family name
72 73 74 |
# File 'lib/google/cloud/bigtable/column_range.rb', line 72 def family= name @grpc.family_name = name end |
#from(qualifier, inclusive: true) ⇒ Google::Cloud::Bigtable::ColumnRange
Set column range with the lower bound.
99 100 101 102 103 104 105 106 |
# File 'lib/google/cloud/bigtable/column_range.rb', line 99 def from qualifier, inclusive: true if inclusive @grpc.start_qualifier_closed = qualifier else @grpc.start_qualifier_open = qualifier end self end |
#of(from_qualifier, to_qualifier) ⇒ Google::Cloud::Bigtable::ColumnRange
Set column range with the inclusive upper and the exclusive lower bound.
172 173 174 |
# File 'lib/google/cloud/bigtable/column_range.rb', line 172 def of from_qualifier, to_qualifier from(from_qualifier).to(to_qualifier) end |
#to(qualifier, inclusive: false) ⇒ Google::Cloud::Bigtable::ColumnRange
Set column range with the upper bound.
131 132 133 134 135 136 137 138 |
# File 'lib/google/cloud/bigtable/column_range.rb', line 131 def to qualifier, inclusive: false if inclusive @grpc.end_qualifier_closed = qualifier else @grpc.end_qualifier_open = qualifier end self end |