Google BigQuery v2 API - Class Filters (3.2.0)

public static class Filters

Reference documentation and code samples for the Google BigQuery v2 API class Filters.

Helper method to build filter strings.

Inheritance

Object > Filters

Namespace

Google.Cloud.BigQuery.V2

Assembly

Google.Cloud.BigQuery.V2.dll

Methods

FromLabel(String, String)

public static string FromLabel(string name, string value)

Creates a filter for a single label.

Parameters
NameDescription
nameString

The name of the label to filter on. Must not be null or empty.

valueString

The value for the label. May be null or empty.

Returns
TypeDescription
String

A string of the form "labels.{name}:{value}" when value is non-null and non-empty, or "labels.{name}" when value is null.

FromLabels(IDictionary<String, String>)

public static string FromLabels(IDictionary<string, string> labels)

Creates a filter for the given labels.

Parameter
NameDescription
labelsIDictionary<String, String>

The labels to filter by. Must not be null.

Returns
TypeDescription
String

A filter for the given labels.

Remarks

See FromLabel(String, String) for the format of a single label; this method joins multiple labels together with spaces.