google-cloud-bigtable 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/CHANGELOG.md +8 -0
  4. data/EMULATOR.md +30 -0
  5. data/OVERVIEW.md +2 -1
  6. data/lib/google-cloud-bigtable.rb +28 -22
  7. data/lib/google/cloud/bigtable.rb +25 -13
  8. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +14 -14
  9. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +5 -5
  10. data/lib/google/cloud/bigtable/app_profile.rb +14 -14
  11. data/lib/google/cloud/bigtable/app_profile/list.rb +9 -9
  12. data/lib/google/cloud/bigtable/chunk_processor.rb +6 -6
  13. data/lib/google/cloud/bigtable/cluster.rb +5 -5
  14. data/lib/google/cloud/bigtable/cluster/job.rb +1 -1
  15. data/lib/google/cloud/bigtable/cluster/list.rb +6 -6
  16. data/lib/google/cloud/bigtable/column_family.rb +12 -12
  17. data/lib/google/cloud/bigtable/column_range.rb +8 -8
  18. data/lib/google/cloud/bigtable/gc_rule.rb +2 -2
  19. data/lib/google/cloud/bigtable/instance.rb +34 -36
  20. data/lib/google/cloud/bigtable/instance/cluster_map.rb +5 -5
  21. data/lib/google/cloud/bigtable/instance/list.rb +9 -9
  22. data/lib/google/cloud/bigtable/longrunning_job.rb +1 -1
  23. data/lib/google/cloud/bigtable/mutation_entry.rb +18 -18
  24. data/lib/google/cloud/bigtable/mutation_operations.rb +25 -23
  25. data/lib/google/cloud/bigtable/policy.rb +13 -13
  26. data/lib/google/cloud/bigtable/project.rb +27 -27
  27. data/lib/google/cloud/bigtable/read_modify_write_rule.rb +6 -6
  28. data/lib/google/cloud/bigtable/read_operations.rb +13 -13
  29. data/lib/google/cloud/bigtable/row.rb +7 -7
  30. data/lib/google/cloud/bigtable/row_filter.rb +58 -58
  31. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +40 -41
  32. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +6 -6
  33. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +46 -47
  34. data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +14 -15
  35. data/lib/google/cloud/bigtable/row_range.rb +16 -16
  36. data/lib/google/cloud/bigtable/rows_mutator.rb +5 -5
  37. data/lib/google/cloud/bigtable/rows_reader.rb +8 -9
  38. data/lib/google/cloud/bigtable/service.rb +153 -141
  39. data/lib/google/cloud/bigtable/table.rb +23 -23
  40. data/lib/google/cloud/bigtable/table/cluster_state.rb +2 -2
  41. data/lib/google/cloud/bigtable/table/column_family_map.rb +5 -5
  42. data/lib/google/cloud/bigtable/table/list.rb +8 -8
  43. data/lib/google/cloud/bigtable/value_range.rb +7 -7
  44. data/lib/google/cloud/bigtable/version.rb +1 -1
  45. metadata +5 -4
@@ -35,12 +35,12 @@ module Google
35
35
  #
36
36
  class ReadModifyWriteRule
37
37
  # @private
38
- # Create instance of ReadModifyWriteRule
38
+ # Create an instance of ReadModifyWriteRule
39
39
  #
40
40
  # @param family [String]
41
41
  # The name of the family to which the read/modify/write should be applied.
42
42
  # @param qualifier [String]
43
- # The qualifier of the column to which the read/modify/write should be
43
+ # The qualifier of the column to which the read/modify/write should be applied.
44
44
  #
45
45
  def initialize family, qualifier
46
46
  @grpc = Google::Bigtable::V2::ReadModifyWriteRule.new
@@ -48,7 +48,7 @@ module Google
48
48
  @grpc.column_qualifier = qualifier
49
49
  end
50
50
 
51
- # Create append value rule instance.
51
+ # Create an instance of an append-value rule.
52
52
  #
53
53
  # @param family [String]
54
54
  # The name of the family to which the read/modify/write should be applied.
@@ -56,7 +56,7 @@ module Google
56
56
  # The qualifier of the column to which the read/modify/write should be applied.
57
57
  # @param value [String]
58
58
  # Rule specifying that `append_value` be appended to the existing value.
59
- # If the targeted cell is unset, it will be treated as containing the empty string.
59
+ # If the targeted cell is unset, it will be treated as if it contains an empty string.
60
60
  # @return [Google::Cloud::Bigtable::ReadModifyWriteRule]
61
61
  #
62
62
  # @example Append value rule
@@ -70,7 +70,7 @@ module Google
70
70
  rule
71
71
  end
72
72
 
73
- # Create increment amount rule instance.
73
+ # Create an instance of an increment-amount rule.
74
74
  #
75
75
  # @param family [String]
76
76
  # The name of the family to which the read/modify/write should be applied.
@@ -78,7 +78,7 @@ module Google
78
78
  # The qualifier of the column to which the read/modify/write should be applied.
79
79
  # @param amount [String]
80
80
  # Rule specifying that `increment_amount` be added to the existing value.
81
- # If the targeted cell is unset, it will be treated as containing a zero.
81
+ # If the targeted cell is unset, it will be treated as if it contains a zero.
82
82
  # Otherwise, the targeted cell must contain an 8-byte value (interpreted
83
83
  # as a 64-bit big-endian signed integer), or the entire request will fail.
84
84
  # @return [Google::Cloud::Bigtable::ReadModifyWriteRule]
@@ -26,19 +26,19 @@ module Google
26
26
  module Bigtable
27
27
  # # ReadOperations
28
28
  #
29
- # Collection of read rows apis.
29
+ # Collection of read-rows APIs.
30
30
  #
31
31
  # * Sample row key
32
32
  # * Read row
33
33
  # * Read rows
34
34
  #
35
35
  module ReadOperations
36
- # Read sample row keys.
36
+ # Reads sample row keys.
37
37
  #
38
38
  # Returns a sample of row keys in the table. The returned row keys will
39
- # delimit contiguous sections of the table of approximately equal size,
40
- # which can be used to break up the data for distributed tasks like
41
- # mapreduces.
39
+ # delimit contiguous sections of the table of approximately equal size. The
40
+ # sections can be used to break up the data for distributed tasks like
41
+ # MapReduces.
42
42
  #
43
43
  # @yieldreturn [Google::Cloud::Bigtable::SampleRowKey]
44
44
  # @return [:yields: sample_row_key]
@@ -67,7 +67,7 @@ module Google
67
67
  end
68
68
  end
69
69
 
70
- # Read rows
70
+ # Reads rows.
71
71
  #
72
72
  # Streams back the contents of all requested rows in key order, optionally
73
73
  # applying the same Reader filter to each.
@@ -86,7 +86,7 @@ module Google
86
86
  # The default (zero) is to return all results.
87
87
  # @return [Array<Google::Cloud::Bigtable::Row> | :yields: row]
88
88
  # Array of row or yield block for each processed row.
89
- # @example Read with Limit
89
+ # @example Read with limit
90
90
  # require "google/cloud/bigtable"
91
91
  #
92
92
  # bigtable = Google::Cloud::Bigtable.new
@@ -185,7 +185,7 @@ module Google
185
185
  end
186
186
  end
187
187
 
188
- # Read single row by key
188
+ # Reads a single row by row key.
189
189
  #
190
190
  # @param key [String] Row key. Required
191
191
  # @param filter [Google::Cloud::Bigtable::RowFilter]
@@ -216,7 +216,7 @@ module Google
216
216
  read_rows(keys: [key], filter: filter).first
217
217
  end
218
218
 
219
- # Create new instance of ValueRange.
219
+ # Creates a new instance of ValueRange.
220
220
  #
221
221
  # @return [Google::Cloud::Bigtable::ValueRange]
222
222
  #
@@ -245,7 +245,7 @@ module Google
245
245
  Google::Cloud::Bigtable::ValueRange.new
246
246
  end
247
247
 
248
- # Get new instance of ColumnRange.
248
+ # Get a new instance of ColumnRange.
249
249
  #
250
250
  # @param family [String] Column family name
251
251
  # @return [Google::Cloud::Bigtable::ColumnRange]
@@ -275,7 +275,7 @@ module Google
275
275
  Google::Cloud::Bigtable::ColumnRange.new(family)
276
276
  end
277
277
 
278
- # Get new instance of RowRange.
278
+ # Get a new instance of RowRange.
279
279
  #
280
280
  # @return [Google::Cloud::Bigtable::RowRange]
281
281
  #
@@ -304,7 +304,7 @@ module Google
304
304
  Google::Cloud::Bigtable::RowRange.new
305
305
  end
306
306
 
307
- # Get row filter
307
+ # Gets a row filter.
308
308
  #
309
309
  # @return [Google::Cloud::Bigtable::RowRange]
310
310
  #
@@ -322,7 +322,7 @@ module Google
322
322
 
323
323
  private
324
324
 
325
- # Build RowSet object from row keys and ranges
325
+ # Builds a RowSet object from row keys and row ranges.
326
326
  #
327
327
  # @param row_keys [Array<String>]
328
328
  # @param row_ranges [Google::Cloud::Bigtable::RowRange | Array<Google::Cloud::Bigtable::RowRange>]
@@ -24,11 +24,11 @@ module Google
24
24
  class Row
25
25
  # Cell
26
26
  #
27
- # Row cell build from data chunks.
27
+ # Row cell built from data chunks.
28
28
  class Cell
29
29
  attr_reader :family, :qualifier, :value, :labels, :timestamp
30
30
 
31
- # Create row cell instance
31
+ # Creates a row cell instance.
32
32
  #
33
33
  # @param family [String] Column family name
34
34
  # @param qualifier [String] Column cell qualifier name
@@ -44,11 +44,11 @@ module Google
44
44
  @labels = labels
45
45
  end
46
46
 
47
- # Convert timestamp to Time instance
47
+ # Converts timestamp to Time instance.
48
48
  #
49
49
  # @param granularity [Symbol] Optional
50
50
  # Valid granularity types are `:micros`, `millis`
51
- # DEfault granularity is a millis.
51
+ # Default granularity is a millis.
52
52
  # @return [Time | nil]
53
53
  #
54
54
  def to_time granularity = nil
@@ -57,7 +57,7 @@ module Google
57
57
  Time.at(@timestamp / 1000.0)
58
58
  end
59
59
 
60
- # Convert value to integer
60
+ # Converts a value to an integer.
61
61
  #
62
62
  # @return [Integer]
63
63
  #
@@ -83,10 +83,10 @@ module Google
83
83
  # @return [String] Row key
84
84
  attr_accessor :key
85
85
 
86
- # @return [Hash{String => Google::Cloud::Bigtable::Row::Cell}] Row cells
86
+ # @return [Hash{String => Array<Google::Cloud::Bigtable::Row::Cell>}] Row cells
87
87
  attr_accessor :cells
88
88
 
89
- # Create flat row object
89
+ # Creates a flat row object.
90
90
  #
91
91
  # @param key [String] Row key name
92
92
  #
@@ -30,37 +30,37 @@ module Google
30
30
  #
31
31
  # Takes a row as input and produces an alternate view of the row based on
32
32
  # specified rules. For example, a RowFilter might trim down a row to include
33
- # just the cells from columns matching a given regular expression, or might
33
+ # just the cells from columns matching a given regular expression, or it might
34
34
  # return all the cells of a row but not their values. More complicated filters
35
35
  # can be composed out of these components to express requests such as, "within
36
36
  # every column of a particular family, give just the two most recent cells
37
- # which are older than timestamp X."
37
+ # that are older than timestamp X."
38
38
  #
39
- # There are two broad categories of RowFilters (true filters and transformers),
40
- # as well as two ways to compose simple filters into more complex ones
41
- # (chains and interleaves). They work as follows:
39
+ # Two broad categories of RowFilters are `true filters` and `transformers`.
40
+ # Two ways to compose simple filters into more complex ones are
41
+ # `chains` and `interleaves`. They work as follows:
42
42
  #
43
43
  # * True filters alter the input row by excluding some of its cells wholesale
44
44
  # from the output row. An example of a true filter is the `value_regex_filter`,
45
45
  # which excludes cells whose values don't match the specified pattern. All
46
46
  # regex true filters use RE2 syntax (https:#github.com/google/re2/wiki/Syntax)
47
- # in raw byte mode (RE2::Latin1), and are evaluated as full matches. An
47
+ # in raw byte mode (RE2::Latin1) and are evaluated as full matches. An
48
48
  # important point to keep in mind is that `RE2(.)` is equivalent by default to
49
49
  # `RE2([^\n])`, meaning that it does not match newlines. When attempting to
50
50
  # match an arbitrary byte, you should therefore use the escape sequence `\C`,
51
- # which may need to be further escaped as `\\C` in your client language.
51
+ # which should be further escaped as `\\C` in Ruby.
52
52
  #
53
53
  # * Transformers alter the input row by changing the values of some of its
54
54
  # cells in the output, without excluding them completely. Currently, the only
55
55
  # supported transformer is the `strip_value_transformer`, which replaces every
56
- # cell's value with the empty string.
56
+ # cell's value with an empty string.
57
57
  #
58
58
  # * Chains and interleaves are described in more detail in the
59
59
  # RowFilter.Chain and RowFilter.Interleave documentation.
60
60
  #
61
61
  # The total serialized size of a RowFilter message must not
62
62
  # exceed 4096 bytes, and RowFilters may not be nested within each other
63
- # (in Chains or Interleaves) to a depth of more than 20.
63
+ # (in chains or interleaves) to a depth of more than 20.
64
64
  #
65
65
  # ADVANCED USE:.
66
66
  # Hook for introspection into the RowFilter. Outputs all cells directly to
@@ -112,11 +112,11 @@ module Google
112
112
  # Despite being excluded by the qualifier filter, a copy of every cell
113
113
  # that reaches the sink is present in the final result.
114
114
  #
115
- # As with an Interleave filter duplicate cells are possible,
115
+ # As with an interleave filter, duplicate cells are possible
116
116
  # and appear in an unspecified mutual order.
117
- # In this case we have a duplicate with column "A:B" and timestamp 2,
118
- # because one copy passed through the all filter while the other was
119
- # passed through the label and sink. Note that one copy has label "foo",
117
+ # In this case we have a duplicate with column "A:B" and timestamp 2
118
+ # because one copy passed through the All filter while the other was
119
+ # passed through the Label and Sink filters. Note that one copy has the label "foo",
120
120
  # while the other does not.
121
121
  #
122
122
  # @example
@@ -145,9 +145,9 @@ module Google
145
145
 
146
146
  private_constant :PASS, :BLOCK, :SINK, :STRIP_VALUE
147
147
 
148
- # Create chain filter instance.
148
+ # Creates a chain filter instance.
149
149
  #
150
- # A Chain RowFilter which sends rows through several RowFilters in sequence.
150
+ # A chain RowFilter that sends rows through several RowFilters in sequence.
151
151
  #
152
152
  # See {Google::Cloud::Bigtable::RowFilter::ChainFilter}
153
153
  #
@@ -182,9 +182,9 @@ module Google
182
182
  ChainFilter.new
183
183
  end
184
184
 
185
- # Create interleave filter.
185
+ # Creates an interleave filter.
186
186
  #
187
- # A RowFilter which sends each row to each of several component
187
+ # A RowFilter that sends each row to each of several component
188
188
  # RowFilters and interleaves the results.
189
189
  #
190
190
  # The elements of "filters" all process a copy of the input row, and the
@@ -215,7 +215,7 @@ module Google
215
215
  #
216
216
  # @return [Google::Cloud::Bigtable::RowFilter::InterleaveFilter]
217
217
  #
218
- # @example Create interleave filter with simple filter.
218
+ # @example Create an interleave filter with simple filter.
219
219
  #
220
220
  # interleave = Google::Cloud::Bigtable::RowFilter.interleave
221
221
  #
@@ -240,14 +240,14 @@ module Google
240
240
  InterleaveFilter.new
241
241
  end
242
242
 
243
- # Create condition filter instance
243
+ # Creates a condition filter instance.
244
244
  #
245
- # A RowFilter which evaluates one of two possible RowFilters, depending on
245
+ # A RowFilter that evaluates one of two possible RowFilters, depending on
246
246
  # whether or not a predicate RowFilter outputs any cells from the input row.
247
247
  #
248
248
  # IMPORTANT NOTE: The predicate filter does not execute atomically with the
249
249
  # true and false filters, which may lead to inconsistent or unexpected
250
- # results. Additionally, Condition filters have poor performance, especially
250
+ # results. Additionally, condition filters have poor performance, especially
251
251
  # when filters are set for the false condition.
252
252
  #
253
253
  # Cannot be used within the `predicate_filter`, `true_filter`, or `false_filter`
@@ -263,14 +263,14 @@ module Google
263
263
  # label = Google::Cloud::Bigtable::RowFilter.label("user")
264
264
  # strip_value = Google::Cloud::Bigtable::RowFilter.strip_value
265
265
  #
266
- # # On match apply lable else strip cell values
266
+ # # On match apply label, else strip cell values
267
267
  # condition.on_match(label).otherwise(strip_value)
268
268
  #
269
269
  def self.condition predicate
270
270
  ConditionFilter.new(predicate)
271
271
  end
272
272
 
273
- # Create pass filter instance
273
+ # Creates a pass filter instance.
274
274
  #
275
275
  # Matches all cells, regardless of input. Functionally equivalent to
276
276
  # leaving `filter` unset, but included for completeness.
@@ -285,7 +285,7 @@ module Google
285
285
  PASS
286
286
  end
287
287
 
288
- # Create block all filter instance
288
+ # Creates a block-all filter instance.
289
289
  #
290
290
  # Does not match any cells, regardless of input. Useful for temporarily
291
291
  # disabling just part of a filter.
@@ -300,9 +300,10 @@ module Google
300
300
  BLOCK
301
301
  end
302
302
 
303
- # Create sink filter instance
303
+ # Creates a sink filter instance.
304
304
  #
305
- # Outputs all cells directly to the output of the read rather than to any parent filter
305
+ # Outputs all cells directly to the output of the read rather than to any
306
+ # parent filter
306
307
  #
307
308
  # @return [Google::Cloud::Bigtable::RowFilter::SimpleFilter]
308
309
  #
@@ -314,9 +315,9 @@ module Google
314
315
  SINK
315
316
  end
316
317
 
317
- # Create strip value filter instance
318
+ # Creates a strip value filter instance.
318
319
  #
319
- # Replaces each cell's value with the empty string.
320
+ # Replaces each cell's value with an empty string.
320
321
  #
321
322
  # @return [Google::Cloud::Bigtable::RowFilter::SimpleFilter]
322
323
  #
@@ -328,9 +329,9 @@ module Google
328
329
  STRIP_VALUE
329
330
  end
330
331
 
331
- # Create key filter instance to match key using regular expression.
332
+ # Creates a key filter instance to match a row key using a regular expression.
332
333
  #
333
- # Matches only cells from rows whose keys satisfy the given RE2 regex. In
334
+ # Matches only cells from rows whose row keys satisfy the given RE2 regex. In
334
335
  # other words, passes through the entire row when the key matches, and
335
336
  # otherwise produces an empty row.
336
337
  # Note that, since row keys can contain arbitrary bytes, the `\C` escape
@@ -352,7 +353,7 @@ module Google
352
353
  SimpleFilter.new.key(regex)
353
354
  end
354
355
 
355
- # Create sample probability filter instance
356
+ # Creates a sample probability filter instance.
356
357
  #
357
358
  # Matches all cells from a row with probability p, and matches no cells
358
359
  # from the row with probability 1-p.
@@ -369,7 +370,7 @@ module Google
369
370
  SimpleFilter.new.sample(probability)
370
371
  end
371
372
 
372
- # Create family name match filter using regex
373
+ # Creates a family name match filter using a regular expression.
373
374
  #
374
375
  # Matches only cells from columns whose families satisfy the given RE2
375
376
  # regex. For technical reasons, the regex must not contain the `:`
@@ -392,7 +393,7 @@ module Google
392
393
  SimpleFilter.new.family(regex)
393
394
  end
394
395
 
395
- # Create column qualifier match filter using regex
396
+ # Creates a column qualifier match filter using a regular expression.
396
397
  #
397
398
  # Matches only cells from columns whose qualifiers satisfy the given RE2
398
399
  # regex.
@@ -415,7 +416,7 @@ module Google
415
416
  SimpleFilter.new.qualifier(regex)
416
417
  end
417
418
 
418
- # Create value match filter using regex
419
+ # Creates a value match filter using a regular expression.
419
420
  #
420
421
  # Matches only cells with values that satisfy the given regular expression.
421
422
  # Note that, since cell values can contain arbitrary bytes, the `\C` escape
@@ -437,21 +438,21 @@ module Google
437
438
  SimpleFilter.new.value(regex)
438
439
  end
439
440
 
440
- # Create label filter instance to apply label on result of read rows.
441
+ # Creates a label filter instance to apply a label based on the result of
442
+ # read rows.
441
443
  #
442
444
  # Applies the given label to all cells in the output row. This allows
443
445
  # the client to determine which results were produced from which part of
444
446
  # the filter.
445
447
  #
446
- # Values must be at most 15 characters in length, and match the RE2
448
+ # Values must be at most 15 characters and match the RE2
447
449
  # pattern `[a-z0-9\\-]+`
448
450
  #
449
- # Due to a technical limitation, it is not currently possible to apply
450
- # multiple labels to a cell. As a result, a Chain may have no more than
451
- # one sub-filter which contains a `apply_label_transformer`. It is okay for
452
- # an Interleave to contain multiple `apply_label_transformers`, as they
453
- # will be applied to separate copies of the input. This may be relaxed in
454
- # the future.
451
+ # Due to a technical limitation, it is not possible to apply
452
+ # multiple labels to a cell. As a result, a chain may have no more than
453
+ # one sub-filter that contains an `apply_label_transformer`. It is okay for
454
+ # an interleave to contain multiple `apply_label_transformers`, as they
455
+ # will be applied to separate copies of the input.
455
456
  #
456
457
  # @param value [String] Label name
457
458
  # @return [Google::Cloud::Bigtable::RowFilter::SimpleFilter]
@@ -464,10 +465,10 @@ module Google
464
465
  SimpleFilter.new.label(value)
465
466
  end
466
467
 
467
- # Create cell per row offset filter instance to skip first N cells.
468
+ # Creates a cell-per-row-offset filter instance to skip first N cells.
468
469
  #
469
470
  # Skips the first N cells of each row, matching all subsequent cells.
470
- # If duplicate cells are present, as is possible when using an Interleave,
471
+ # If duplicate cells are present, as is possible when using an interleave,
471
472
  # each copy of the cell is counted separately.
472
473
  #
473
474
  # @param offset [Integer] Offset value.
@@ -481,10 +482,10 @@ module Google
481
482
  SimpleFilter.new.cells_per_row_offset(offset)
482
483
  end
483
484
 
484
- # Create cells per row limit filter instance
485
+ # Create a cells-per-row limit filter instance.
485
486
  #
486
487
  # Matches only the first N cells of each row.
487
- # If duplicate cells are present, as is possible when using an Interleave,
488
+ # If duplicate cells are present, as is possible when using an interleave,
488
489
  # each copy of the cell is counted separately.
489
490
  #
490
491
  # @param limit [String] Max cell match per row limit
@@ -498,13 +499,10 @@ module Google
498
499
  SimpleFilter.new.cells_per_row(limit)
499
500
  end
500
501
 
501
- # Create cells per column filter instance
502
+ # Creates cells-per-column filter instance.
502
503
  #
503
- # Matches only the most recent N cells within each column. For example,
504
- # if N=2, this filter would match column `foo:bar` at timestamps 10 and 9,
505
- # skip all earlier cells in `foo:bar`, and then begin matching again in
506
- # column `foo:bar2`.
507
- # If duplicate cells are present, as is possible when using an Interleave,
504
+ # Matches only the most recent N cells within each column.
505
+ # If duplicate cells are present, as is possible when using an interleave,
508
506
  # each copy of the cell is counted separately.
509
507
  #
510
508
  # @param limit [String] Max cell match per column limit
@@ -518,10 +516,10 @@ module Google
518
516
  SimpleFilter.new.cells_per_column(limit)
519
517
  end
520
518
 
521
- # Create timestamp range filter instance
519
+ # Creates a timestamp-range filter instance.
522
520
  #
523
521
  # Matches only cells with timestamps within the given range.
524
- # Specified a contiguous range of timestamps.
522
+ # Specifies a contiguous range of timestamps.
525
523
  #
526
524
  # @param from [Integer] Inclusive lower bound. If left empty, interpreted as 0.
527
525
  # @param to [Integer] Exclusive upper bound. If left empty, interpreted as infinity.
@@ -544,15 +542,17 @@ module Google
544
542
  SimpleFilter.new.timestamp_range(from, to)
545
543
  end
546
544
 
547
- # Create value range filter instance
545
+ # Creates a value-range filter instance.
548
546
  #
549
547
  # Matches only cells with values that fall within the given range.
550
548
  #
551
549
  # See {Google::Cloud::Bigtable::ValueRange#from} and { Google::Cloud::Bigtable::ValueRange#to} for range
552
550
  # option inclusive/exclusive options
553
551
  #
554
- # * The value at which to start the range.If neither field is set, interpreted as the empty string, inclusive.
555
- # * The value at which to end the range. If neither field is set, interpreted as the infinite string, exclusive.
552
+ # * The value at which to start the range. If neither field is set, interpreted
553
+ # as an empty string, inclusive.
554
+ # * The value at which to end the range. If neither field is set, interpreted
555
+ # as an infinite string, exclusive.
556
556
  #
557
557
  # @param range [Google::Cloud::Bigtable::ValueRange]
558
558
  # @return [Google::Cloud::Bigtable::RowFilter::SimpleFilter]
@@ -571,7 +571,7 @@ module Google
571
571
  SimpleFilter.new.value_range(range)
572
572
  end
573
573
 
574
- # Create column range filter instance.
574
+ # Creates a column-range filter instance.
575
575
  #
576
576
  # Matches only cells from columns within the given range.
577
577
  #