Class: Google::Privacy::Dlp::V2::BigQueryOptions
- Inherits:
-
Object
- Object
- Google::Privacy::Dlp::V2::BigQueryOptions
- Defined in:
- lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb
Overview
Options defining BigQuery table and row identifiers.
Defined Under Namespace
Modules: SampleMethod
Instance Attribute Summary collapse
-
#identifying_fields ⇒ Array<Google::Privacy::Dlp::V2::FieldId>
References to fields uniquely identifying rows within the table.
-
#rows_limit ⇒ Integer
Max number of rows to scan.
-
#rows_limit_percent ⇒ Integer
Max percentage of rows to scan.
- #sample_method ⇒ Google::Privacy::Dlp::V2::BigQueryOptions::SampleMethod
-
#table_reference ⇒ Google::Privacy::Dlp::V2::BigQueryTable
Complete BigQuery table reference.
Instance Attribute Details
#identifying_fields ⇒ Array<Google::Privacy::Dlp::V2::FieldId>
Returns References to fields uniquely identifying rows within the table. Nested fields in the format, like +person.birthdate.year+, are allowed.
306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306 class BigQueryOptions # How to sample rows if not all rows are scanned. Meaningful only when used # in conjunction with rows_limit. If not specified, scanning would start # from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # Randomly pick the row to start scanning. The scanned rows are contiguous. RANDOM_START = 2 end end |
#rows_limit ⇒ Integer
Returns Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig.
306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306 class BigQueryOptions # How to sample rows if not all rows are scanned. Meaningful only when used # in conjunction with rows_limit. If not specified, scanning would start # from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # Randomly pick the row to start scanning. The scanned rows are contiguous. RANDOM_START = 2 end end |
#rows_limit_percent ⇒ Integer
Returns Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig.
306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306 class BigQueryOptions # How to sample rows if not all rows are scanned. Meaningful only when used # in conjunction with rows_limit. If not specified, scanning would start # from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # Randomly pick the row to start scanning. The scanned rows are contiguous. RANDOM_START = 2 end end |
#sample_method ⇒ Google::Privacy::Dlp::V2::BigQueryOptions::SampleMethod
306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306 class BigQueryOptions # How to sample rows if not all rows are scanned. Meaningful only when used # in conjunction with rows_limit. If not specified, scanning would start # from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # Randomly pick the row to start scanning. The scanned rows are contiguous. RANDOM_START = 2 end end |
#table_reference ⇒ Google::Privacy::Dlp::V2::BigQueryTable
Returns Complete BigQuery table reference.
306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306 class BigQueryOptions # How to sample rows if not all rows are scanned. Meaningful only when used # in conjunction with rows_limit. If not specified, scanning would start # from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # Randomly pick the row to start scanning. The scanned rows are contiguous. RANDOM_START = 2 end end |