#include <hive_partitioning_options.h>
◆ HivePartitioningOptions() [1/2]
google_bigquery_api::HivePartitioningOptions::HivePartitioningOptions |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ HivePartitioningOptions() [2/2]
google_bigquery_api::HivePartitioningOptions::HivePartitioningOptions |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~HivePartitioningOptions()
google_bigquery_api::HivePartitioningOptions::~HivePartitioningOptions |
( |
| ) |
|
|
virtual |
◆ clear_mode()
void google_bigquery_api::HivePartitioningOptions::clear_mode |
( |
| ) |
|
|
inline |
Clears the 'mode
' attribute.
◆ clear_source_uri_prefix()
void google_bigquery_api::HivePartitioningOptions::clear_source_uri_prefix |
( |
| ) |
|
|
inline |
Clears the 'sourceUriPrefix
' attribute.
◆ get_mode()
const StringPiece google_bigquery_api::HivePartitioningOptions::get_mode |
( |
| ) |
const |
|
inline |
Get the value of the 'mode
' attribute.
◆ get_source_uri_prefix()
const StringPiece google_bigquery_api::HivePartitioningOptions::get_source_uri_prefix |
( |
| ) |
const |
|
inline |
Get the value of the 'sourceUriPrefix
' attribute.
◆ GetTypeName()
const StringPiece google_bigquery_api::HivePartitioningOptions::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_mode()
bool google_bigquery_api::HivePartitioningOptions::has_mode |
( |
| ) |
const |
|
inline |
Determine if the 'mode
' attribute was set.
- Returns
- true if the '
mode
' attribute was set.
◆ has_source_uri_prefix()
bool google_bigquery_api::HivePartitioningOptions::has_source_uri_prefix |
( |
| ) |
const |
|
inline |
Determine if the 'sourceUriPrefix
' attribute was set.
- Returns
- true if the '
sourceUriPrefix
' attribute was set.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_mode()
void google_bigquery_api::HivePartitioningOptions::set_mode |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'mode
' attribute.
[Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
- Parameters
-
◆ set_source_uri_prefix()
void google_bigquery_api::HivePartitioningOptions::set_source_uri_prefix |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'sourceUriPrefix
' attribute.
[Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
- Parameters
-
The documentation for this class was generated from the following files: