Пример #1
0
        // [END bigtable_filters_limit_col_qualifier_regex]

        // [START bigtable_filters_limit_col_range]
        /// <summary>
        /// /// Read using a qualifer 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 filterLimitColRange(string projectId = "YOUR-PROJECT-ID", string instanceId = "YOUR-INSTANCE-ID", string tableId = "YOUR-TABLE-ID")
        {
            // A filter that matches cells whose column qualifiers are between data_plan_01gb and
            // data_plan_10gb in the column family cell_plan
            RowFilter filter = RowFilters.ColumnRange(ColumnRange.ClosedOpen("cell_plan", "data_plan_01gb", "data_plan_10gb"));

            return(readFilter(projectId, instanceId, tableId, filter));
        }
Пример #2
0
        public void ColumnRange()
        {
            var range = new ColumnRange
            {
                StartQualifierClosed = ByteString.CopyFromUtf8("a"),
                EndQualifierOpen     = ByteString.CopyFromUtf8("z")
            };
            var filter = RowFilters.ColumnRange(range);

            Assert.Equal(range, filter.ColumnRangeFilter);
        }
Пример #3
0
 public void ColumnRange_Validations()
 {
     Assert.Throws <ArgumentNullException>(() => RowFilters.ColumnRange(null));
 }