Reference documentation and code samples for the Data Loss Prevention V2 Client class SampleMethod.
How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either rows_limit or rows_limit_percent. If not specified, rows are scanned in the order BigQuery reads them.
Protobuf type google.privacy.dlp.v2.BigQueryOptions.SampleMethod
Namespace
Google \ Cloud \ Dlp \ V2 \ BigQueryOptionsMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
SAMPLE_METHOD_UNSPECIFIED
Value: 0
Generated from protobuf enum SAMPLE_METHOD_UNSPECIFIED = 0;
TOP
Value: 1
Scan groups of rows in the order BigQuery provides (default). Multiple groups of rows may be scanned in parallel, so results may not appear in the same order the rows are read.
Generated from protobuf enum TOP = 1;
RANDOM_START
Value: 2
Randomly pick groups of rows to scan.
Generated from protobuf enum RANDOM_START = 2;