2.13.2 (latest) 2.13.1 2.12.3 2.11.1 2.10.2 2.9.1 2.8.0 2.7.1 2.6.5 Reference documentation and code samples for the Cloud Bigtable API class Google::Cloud::Bigtable::RowFilter::SimpleFilter.

## SimpleFilter

## Inherits

- Object

## Methods

### #block

```ruby
def block() -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Does not match any cells, regardless of input. Useful for temporarily
disabling just part of a filter.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #cells_per_column

```ruby
def cells_per_column(limit) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches only the most recent N cells within each column. For example,
if N=2, this filter would match column `foo:bar` at timestamps 10 and 9,
skip all earlier cells in `foo:bar`, and then begin matching again in
column `foo:bar2`.
If duplicate cells are present, as is possible when using an interleave,
each copy of the cell is counted separately.
**Parameter**

- **limit** (String) --- Max cell match per column limit
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #cells_per_row

```ruby
def cells_per_row(limit) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches only the first N cells of each row.
If duplicate cells are present, as is possible when using an Interleave,
each copy of the cell is counted separately.
**Parameter**

- **limit** (String) --- Max cell match per row limit
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #cells_per_row_offset

```ruby
def cells_per_row_offset(offset) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Skips the first N cells of each row, matching all subsequent cells.
If duplicate cells are present, as is possible when using an interleave,
each copy of the cell is counted separately.
**Parameter**

- **offset** (Integer) --- Offset value.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #column_range

```ruby
def column_range(range) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches only cells from columns within the given range.
**Parameter**

- **range** ([Google::Cloud::Bigtable::ColumnRange](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-ColumnRange.md.txt))
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #family

```ruby
def family(regex) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches only cells from columns whose families satisfy the given RE2
regex. For technical reasons, the regex must not contain the `:`
character, even if it is not being used as a literal.
Note that, since column families cannot contain the new line character
`\n`, it is sufficient to use `.` as a full wildcard when matching
column family names.
**Parameter**

- **regex** (String) --- Regex to match family name.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #key

```ruby
def key(regex) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches only cells from rows whose keys satisfy the given RE2 regex. In
other words, passes through the entire row when the key matches, and
otherwise produces an empty row.
Note that, since row keys can contain arbitrary bytes, the `\C` escape
sequence must be used if a true wildcard is desired. The `.` character
will not match the new line character `\n`, which may be present in a
binary key.


<br />

For Regex syntax:
**Parameter**

- **regex** (String) --- Regex to match row keys.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #label

```ruby
def label(value) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Applies the given label to all cells in the output row. This allows
the client to determine which results were produced from which part of
the filter.


Values must be at most 15 characters in length, and match the RE2
pattern `[a-z0-9\-]+`

<br />

Due to a technical limitation, it is not possible to apply
multiple labels to a cell. As a result, a chain may have no more than
one sub-filter that contains an `apply_label_transformer`. It is okay for
an interleave to contain multiple `apply_label_transformers`, as they
will be applied to separate copies of the input.
**Parameter**

- **value** (String) --- Label name
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #pass

```ruby
def pass() -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches all cells, regardless of input. Functionally equivalent to
leaving `filter` unset, but included for completeness.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #qualifier

```ruby
def qualifier(regex) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches only cells from columns whose qualifiers satisfy the given RE2
regex.
Note that, since column qualifiers can contain arbitrary bytes, the `\C`
escape sequence must be used if a true wildcard is desired. The `.`
character will not match the new line character `\n`, which may be
present in a binary qualifier.
**Parameter**

- **regex** (String) --- Regex to match column qualifier name.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #sample

```ruby
def sample(probability) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches all cells from a row with probability p, and matches no cells
from the row with probability 1-p.
**Parameter**

- **probability** (Float)
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #sink

```ruby
def sink() -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Outputs all cells directly to the output of the read rather than to any parent filter.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #strip_value

```ruby
def strip_value() -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Replaces each cell's value with an empty string.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #timestamp_range

```ruby
def timestamp_range(from, to) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Creates a timestamp-range filter.


<br />

Matches only cells with timestamps within the given range.
Specifies a contiguous range of timestamps.
**Parameters**

- **from** (Integer) --- Inclusive lower bound. If left empty, interpreted as 0.
- **to** (Integer) --- Exclusive upper bound. If left empty, interpreted as infinity.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #value

```ruby
def value(regex) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches only cells with values that satisfy the given regular expression.
Note that, since cell values can contain arbitrary bytes, the `\C` escape
sequence must be used if a true wildcard is desired. The `.` character
will not match the new line character `\n`, which may be present in a
binary value.
**Parameter**

- **regex** (String, Integer) --- Regex to match cell value, or an Integer value to be encoded as a 64-bit signed big-endian integer.
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))

### #value_range

```ruby
def value_range(range) -> Google::Cloud::Bigtable::RowFilter::SimpleFilter
```
Matches only cells with values that fall within the given range.

See [ValueRange#from](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-ValueRange.md.txt#Google__Cloud__Bigtable__ValueRange_from_instance_ "Google::Cloud::Bigtable::ValueRange#from (method)") and { Google::Cloud::Bigtable::ValueRange#to} for range
option inclusive/exclusive options

- The value at which to start the range. If neither field is set, interpreted as an empty string, inclusive.
- The value at which to end the range. If neither field is set, interpreted as an infinite string, exclusive.
**Parameter**

- **range** ([Google::Cloud::Bigtable::ValueRange](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-ValueRange.md.txt))
**Returns**

- ([Google::Cloud::Bigtable::RowFilter::SimpleFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-RowFilter-SimpleFilter.md.txt))