// [END bigtable_filters_limit_row_sample] // [START bigtable_filters_limit_row_regex] /// <summary> /// /// Read using a row regex filter from an existing table. ///</summary> /// <param name="projectId">Your Google Cloud Project ID.</param> /// <param name="instanceId">Your Google Cloud Bigtable Instance ID.</param> /// <param name="tableId">Your Google Cloud Bigtable table ID.</param> public string filterLimitRowRegex(string projectId = "YOUR-PROJECT-ID", string instanceId = "YOUR-INSTANCE-ID", string tableId = "YOUR-TABLE-ID") { // A filter that matches cells from rows whose keys satisfy the given regex RowFilter filter = RowFilters.RowKeyRegex(".*#20190501$"); return(readFilter(projectId, instanceId, tableId, filter)); }
public void RowKeyRegex() { var filter = RowFilters.RowKeyRegex("abc"); Assert.Equal(ByteString.CopyFromUtf8("abc"), filter.RowKeyRegexFilter); }