// [END bigtable_filters_limit_pass_all] // [START bigtable_filters_modify_strip_value] /// <summary> /// /// Read using a strip value 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 filterModifyStripValue(string projectId = "YOUR-PROJECT-ID", string instanceId = "YOUR-INSTANCE-ID", string tableId = "YOUR-TABLE-ID") { // A filter that replaces the outputted cell value with the empty string RowFilter filter = RowFilters.StripValueTransformer(); return(readFilter(projectId, instanceId, tableId, filter)); }
public override async Task <long> ReadHighestSequenceNrAsync(string persistenceId, long fromSequenceNr) { var rowRange = RowRange.ClosedOpen( ToRowKeyBigtableByteString(persistenceId, fromSequenceNr), ToRowKeyBigtableByteString(persistenceId, long.MaxValue)); var rows = RowSet.FromRowRanges(rowRange); var stream = _bigtableClient.ReadRows( _tableName, rows: rows, filter: RowFilters.Chain(RowFilters.CellsPerRowLimit(1), RowFilters.StripValueTransformer())); var lastRow = await stream.LastOrDefault().ConfigureAwait(false); return(lastRow == null ? 0L : GetSequenceNumber(lastRow)); }
public void StripValueTransformer() { var filter = RowFilters.StripValueTransformer(); Assert.True(filter.StripValueTransformer); }