#[non_exhaustive]pub struct BigQueryOptions {
pub use_partitioned_tables: bool,
pub uses_timestamp_column_partitioning: bool,
/* private fields */
}Expand description
Options that change functionality of a sink exporting data to BigQuery.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.use_partitioned_tables: boolOptional. Whether to use BigQuery’s partition tables. By default, Cloud Logging creates dated tables based on the log entries’ timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax has to be used instead. In both cases, tables are sharded based on UTC timezone.
uses_timestamp_column_partitioning: boolOutput only. True if new timestamp column based partitioning is in use, false if legacy ingestion-time partitioning is in use.
All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
Implementations§
Source§impl BigQueryOptions
impl BigQueryOptions
pub fn new() -> Self
Sourcepub fn set_use_partitioned_tables<T: Into<bool>>(self, v: T) -> Self
pub fn set_use_partitioned_tables<T: Into<bool>>(self, v: T) -> Self
Sets the value of use_partitioned_tables.
§Example
let x = BigQueryOptions::new().set_use_partitioned_tables(true);Sourcepub fn set_uses_timestamp_column_partitioning<T: Into<bool>>(self, v: T) -> Self
pub fn set_uses_timestamp_column_partitioning<T: Into<bool>>(self, v: T) -> Self
Sets the value of uses_timestamp_column_partitioning.
§Example
let x = BigQueryOptions::new().set_uses_timestamp_column_partitioning(true);Trait Implementations§
Source§impl Clone for BigQueryOptions
impl Clone for BigQueryOptions
Source§fn clone(&self) -> BigQueryOptions
fn clone(&self) -> BigQueryOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more