// [END bigtable_filters_limit_col_range] // [START bigtable_filters_limit_value_range] /// <summary> /// /// Read using a value range 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 filterLimitValueRange(string projectId = "YOUR-PROJECT-ID", string instanceId = "YOUR-INSTANCE-ID", string tableId = "YOUR-TABLE-ID") { // A filter that matches cells whose values are between the given values RowFilter filter = RowFilters.ValueRange(ValueRange.Closed("PQ2A.190405", "PQ2A.190406")); return(readFilter(projectId, instanceId, tableId, filter)); }
public void ValueRange() { var range = new ValueRange { StartValueClosed = ByteString.CopyFromUtf8("a"), EndValueOpen = ByteString.CopyFromUtf8("z") }; var filter = RowFilters.ValueRange(range); Assert.Equal(range, filter.ValueRangeFilter); }
public void ValueRange_Validations() { Assert.Throws <ArgumentNullException>(() => RowFilters.ValueRange(null)); }