@@ -124,3 +124,63 @@ def to_pb(self):
124
124
:returns: The converted current object.
125
125
"""
126
126
return data_pb2 .RowFilter (family_name_regex_filter = self .regex )
127
+
128
+
129
+ class ColumnQualifierRegexFilter (_RegexFilter ):
130
+ """Row filter for a column qualifier regular expression.
131
+
132
+ The ``regex`` must be valid RE2 patterns. See Google's
133
+ `RE2 reference`_ for the accepted syntax.
134
+
135
+ .. _RE2 reference: https://github.com/google/re2/wiki/Syntax
136
+
137
+ .. note::
138
+
139
+ Special care need be used with the expression used. Since
140
+ each of these properties can contain arbitrary bytes, the ``\\ C``
141
+ escape sequence must be used if a true wildcard is desired. The ``.``
142
+ character will not match the new line character ``\\ n``, which may be
143
+ present in a binary value.
144
+
145
+ :type regex: bytes
146
+ :param regex: A regular expression (RE2) to match cells from column that
147
+ match this regex (irrespective of column family).
148
+ """
149
+
150
+ def to_pb (self ):
151
+ """Converts the row filter to a protobuf.
152
+
153
+ :rtype: :class:`.data_pb2.RowFilter`
154
+ :returns: The converted current object.
155
+ """
156
+ return data_pb2 .RowFilter (column_qualifier_regex_filter = self .regex )
157
+
158
+
159
+ class ValueRegexFilter (_RegexFilter ):
160
+ """Row filter for a value regular expression.
161
+
162
+ The ``regex`` must be valid RE2 patterns. See Google's
163
+ `RE2 reference`_ for the accepted syntax.
164
+
165
+ .. _RE2 reference: https://github.com/google/re2/wiki/Syntax
166
+
167
+ .. note::
168
+
169
+ Special care need be used with the expression used. Since
170
+ each of these properties can contain arbitrary bytes, the ``\\ C``
171
+ escape sequence must be used if a true wildcard is desired. The ``.``
172
+ character will not match the new line character ``\\ n``, which may be
173
+ present in a binary value.
174
+
175
+ :type regex: bytes
176
+ :param regex: A regular expression (RE2) to match cells with values that
177
+ match this regex.
178
+ """
179
+
180
+ def to_pb (self ):
181
+ """Converts the row filter to a protobuf.
182
+
183
+ :rtype: :class:`.data_pb2.RowFilter`
184
+ :returns: The converted current object.
185
+ """
186
+ return data_pb2 .RowFilter (value_regex_filter = self .regex )
0 commit comments