Table

Struct Table 

Source
pub struct Table {
Show 52 fields pub biglake_configuration: Option<BigLakeConfiguration>, pub clone_definition: Option<CloneDefinition>, pub clustering: Option<Clustering>, pub creation_time: Option<i64>, pub default_collation: Option<String>, pub default_rounding_mode: Option<String>, pub description: Option<String>, pub encryption_configuration: Option<EncryptionConfiguration>, pub etag: Option<String>, pub expiration_time: Option<i64>, pub external_catalog_table_options: Option<ExternalCatalogTableOptions>, pub external_data_configuration: Option<ExternalDataConfiguration>, pub friendly_name: Option<String>, pub id: Option<String>, pub kind: Option<String>, pub labels: Option<HashMap<String, String>>, pub last_modified_time: Option<u64>, pub location: Option<String>, pub managed_table_type: Option<String>, pub materialized_view: Option<MaterializedViewDefinition>, pub materialized_view_status: Option<MaterializedViewStatus>, pub max_staleness: Option<String>, pub model: Option<ModelDefinition>, pub num_active_logical_bytes: Option<i64>, pub num_active_physical_bytes: Option<i64>, pub num_bytes: Option<i64>, pub num_current_physical_bytes: Option<i64>, pub num_long_term_bytes: Option<i64>, pub num_long_term_logical_bytes: Option<i64>, pub num_long_term_physical_bytes: Option<i64>, pub num_partitions: Option<i64>, pub num_physical_bytes: Option<i64>, pub num_rows: Option<u64>, pub num_time_travel_physical_bytes: Option<i64>, pub num_total_logical_bytes: Option<i64>, pub num_total_physical_bytes: Option<i64>, pub partition_definition: Option<PartitioningDefinition>, pub range_partitioning: Option<RangePartitioning>, pub replicas: Option<Vec<TableReference>>, pub require_partition_filter: Option<bool>, pub resource_tags: Option<HashMap<String, String>>, pub restrictions: Option<RestrictionConfig>, pub schema: Option<TableSchema>, pub self_link: Option<String>, pub snapshot_definition: Option<SnapshotDefinition>, pub streaming_buffer: Option<Streamingbuffer>, pub table_constraints: Option<TableConstraints>, pub table_reference: Option<TableReference>, pub table_replication_info: Option<TableReplicationInfo>, pub time_partitioning: Option<TimePartitioning>, pub type_: Option<String>, pub view: Option<ViewDefinition>,
}
Expand description

There is no detailed description.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§biglake_configuration: Option<BigLakeConfiguration>

Optional. Specifies the configuration of a BigQuery table for Apache Iceberg.

§clone_definition: Option<CloneDefinition>

Output only. Contains information about the clone. This value is set via the clone operation.

§clustering: Option<Clustering>

Clustering specification for the table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered.

§creation_time: Option<i64>

Output only. The time when this table was created, in milliseconds since the epoch.

§default_collation: Option<String>

Optional. Defines the default collation specification of new STRING fields in the table. During table creation or update, if a STRING field is added to this table without explicit collation specified, then the table inherits the table default collation. A change to this field affects only fields added afterwards, and does not alter the existing fields. The following values are supported: * ‘und:ci’: undetermined locale, case insensitive. * ‘’: empty string. Default to case-sensitive behavior.

§default_rounding_mode: Option<String>

Optional. Defines the default rounding mode specification of new decimal fields (NUMERIC OR BIGNUMERIC) in the table. During table creation or update, if a decimal field is added to this table without an explicit rounding mode specified, then the field inherits the table default rounding mode. Changing this field doesn’t affect existing fields.

§description: Option<String>

Optional. A user-friendly description of this table.

§encryption_configuration: Option<EncryptionConfiguration>

Custom encryption configuration (e.g., Cloud KMS keys).

§etag: Option<String>

Output only. A hash of this resource.

§expiration_time: Option<i64>

Optional. The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.

§external_catalog_table_options: Option<ExternalCatalogTableOptions>

Optional. Options defining open source compatible table.

§external_data_configuration: Option<ExternalDataConfiguration>

Optional. Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.

§friendly_name: Option<String>

Optional. A descriptive name for this table.

§id: Option<String>

Output only. An opaque ID uniquely identifying the table.

§kind: Option<String>

The type of resource ID.

§labels: Option<HashMap<String, String>>

The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.

§last_modified_time: Option<u64>

Output only. The time when this table was last modified, in milliseconds since the epoch.

§location: Option<String>

Output only. The geographic location where the table resides. This value is inherited from the dataset.

§managed_table_type: Option<String>

Optional. If set, overrides the default managed table type configured in the dataset.

§materialized_view: Option<MaterializedViewDefinition>

Optional. The materialized view definition.

§materialized_view_status: Option<MaterializedViewStatus>

Output only. The materialized view status.

§max_staleness: Option<String>

Optional. The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of sql IntervalValue type.

§model: Option<ModelDefinition>

Deprecated.

§num_active_logical_bytes: Option<i64>

Output only. Number of logical bytes that are less than 90 days old.

§num_active_physical_bytes: Option<i64>

Output only. Number of physical bytes less than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.

§num_bytes: Option<i64>

Output only. The size of this table in logical bytes, excluding any data in the streaming buffer.

§num_current_physical_bytes: Option<i64>

Output only. Number of physical bytes used by current live data storage. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.

§num_long_term_bytes: Option<i64>

Output only. The number of logical bytes in the table that are considered “long-term storage”.

§num_long_term_logical_bytes: Option<i64>

Output only. Number of logical bytes that are more than 90 days old.

§num_long_term_physical_bytes: Option<i64>

Output only. Number of physical bytes more than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.

§num_partitions: Option<i64>

Output only. The number of partitions present in the table or materialized view. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.

§num_physical_bytes: Option<i64>

Output only. The physical size of this table in bytes. This includes storage used for time travel.

§num_rows: Option<u64>

Output only. The number of rows of data in this table, excluding any data in the streaming buffer.

§num_time_travel_physical_bytes: Option<i64>

Output only. Number of physical bytes used by time travel storage (deleted or changed data). This data is not kept in real time, and might be delayed by a few seconds to a few minutes.

§num_total_logical_bytes: Option<i64>

Output only. Total number of logical bytes in the table or materialized view.

§num_total_physical_bytes: Option<i64>

Output only. The physical size of this table in bytes. This also includes storage used for time travel. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.

§partition_definition: Option<PartitioningDefinition>

Optional. The partition information for all table formats, including managed partitioned tables, hive partitioned tables, iceberg partitioned, and metastore partitioned tables. This field is only populated for metastore partitioned tables. For other table formats, this is an output only field.

§range_partitioning: Option<RangePartitioning>

If specified, configures range partitioning for this table.

§replicas: Option<Vec<TableReference>>

Optional. Output only. Table references of all replicas currently active on the table.

§require_partition_filter: Option<bool>

Optional. If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.

§resource_tags: Option<HashMap<String, String>>

[Optional] The tags associated with this table. Tag keys are globally unique. See additional information on tags. An object containing a list of “key”: value pairs. The key is the namespaced friendly name of the tag key, e.g. “12345/environment” where 12345 is parent id. The value is the friendly short name of the tag value, e.g. “production”.

§restrictions: Option<RestrictionConfig>

Optional. Output only. Restriction config for table. If set, restrict certain accesses on the table based on the config. See Data egress for more details.

§schema: Option<TableSchema>

Optional. Describes the schema of this table.

§self_link: Option<String>

Output only. A URL that can be used to access this resource again.

§snapshot_definition: Option<SnapshotDefinition>

Output only. Contains information about the snapshot. This value is set via snapshot creation.

§streaming_buffer: Option<Streamingbuffer>

Output only. Contains information regarding this table’s streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.

§table_constraints: Option<TableConstraints>

Optional. Tables Primary Key and Foreign Key information

§table_reference: Option<TableReference>

Required. Reference describing the ID of this table.

§table_replication_info: Option<TableReplicationInfo>

Optional. Table replication info for table created AS REPLICA DDL like: CREATE MATERIALIZED VIEW mv1 AS REPLICA OF src_mv

§time_partitioning: Option<TimePartitioning>

If specified, configures time-based partitioning for this table.

§type_: Option<String>

Output only. Describes the table type. The following values are supported: * TABLE: A normal BigQuery table. * VIEW: A virtual table defined by a SQL query. * EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. * MATERIALIZED_VIEW: A precomputed view defined by a SQL query. * SNAPSHOT: An immutable BigQuery table that preserves the contents of a base table at a particular time. See additional information on table snapshots. The default value is TABLE.

§view: Option<ViewDefinition>

Optional. The view definition.

Trait Implementations§

Source§

impl Clone for Table

Source§

fn clone(&self) -> Table

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Table

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Table

Source§

fn default() -> Table

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Table

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Table

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl RequestValue for Table

Source§

impl Resource for Table

Source§

impl ResponseResult for Table

Auto Trait Implementations§

§

impl Freeze for Table

§

impl RefUnwindSafe for Table

§

impl Send for Table

§

impl Sync for Table

§

impl Unpin for Table

§

impl UnwindSafe for Table

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,