#[non_exhaustive]pub struct BigqueryMapping {
pub timestamp_column: String,
pub group_id_column: String,
pub dimension_column: Vec<String>,
/* private fields */
}Expand description
Mapping of BigQuery columns to timestamp, group_id and dimensions.
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.timestamp_column: StringThe column which should be used as the event timestamps. If not specified ‘Timestamp’ is used by default. The column may have TIMESTAMP or INT64 type (the latter is interpreted as microseconds since the Unix epoch).
group_id_column: StringThe column which should be used as the group ID (grouping events into sessions). If not specified ‘GroupId’ is used by default, if the input table does not have such a column, random unique group IDs are generated automatically (different group ID per input row).
dimension_column: Vec<String>The list of columns that should be translated to dimensions. If empty, all columns are translated to dimensions. The timestamp and group_id columns should not be listed here again. Columns are expected to have primitive types (STRING, INT64, FLOAT64 or NUMERIC).
Implementations§
Source§impl BigqueryMapping
impl BigqueryMapping
pub fn new() -> Self
Sourcepub fn set_timestamp_column<T: Into<String>>(self, v: T) -> Self
pub fn set_timestamp_column<T: Into<String>>(self, v: T) -> Self
Sets the value of timestamp_column.
Sourcepub fn set_group_id_column<T: Into<String>>(self, v: T) -> Self
pub fn set_group_id_column<T: Into<String>>(self, v: T) -> Self
Sets the value of group_id_column.
Sourcepub fn set_dimension_column<T, V>(self, v: T) -> Self
pub fn set_dimension_column<T, V>(self, v: T) -> Self
Sets the value of dimension_column.
Trait Implementations§
Source§impl Clone for BigqueryMapping
impl Clone for BigqueryMapping
Source§fn clone(&self) -> BigqueryMapping
fn clone(&self) -> BigqueryMapping
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more