pub struct StagingTable {
pub id: String,
pub name: String,
pub schema_name: String,
pub catalog_name: String,
pub staging_location: String,
pub created_by: Option<String>,
pub stage_committed: bool,
pub created_at: Option<i64>,
/* private fields */
}Expand description
A staging table is a transient reservation created while provisioning a Unity Catalog managed table.
On creation the server allocates an immutable table id and storage location
under the parent schema/catalog’s managed storage root. The client then
writes the initial Delta commit (_delta_log/00...0.json) at that location
and finalizes the table via the CreateTable API, which commits this staging
row. A staging table is not yet a usable table and is not returned by the
table APIs.
Fields§
§id: StringUnique identifier generated for the staging table. Becomes the managed table’s id once finalized.
Field 1: id
name: StringName of the staging table, relative to the parent schema.
Field 2: name
schema_name: StringName of the parent schema relative to its parent catalog.
Field 3: schema_name
catalog_name: StringName of the parent catalog.
Field 4: catalog_name
staging_location: StringStorage location allocated for the staging table, where the client writes the initial Delta commit. Immutable once allocated.
Field 5: staging_location
created_by: Option<String>Username of the principal that created the staging table. Only this principal may finalize the table.
Field 6: created_by
stage_committed: boolWhether the staging table has been finalized into a managed table.
Field 7: stage_committed
created_at: Option<i64>Time at which this staging table was created, in epoch milliseconds.
Field 8: created_at
Implementations§
Source§impl StagingTable
impl StagingTable
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Returns the fully-qualified dot-separated name computed from component fields.
Source§impl StagingTable
impl StagingTable
Source§impl StagingTable
impl StagingTable
Sourcepub fn with_created_by(self, value: impl Into<String>) -> Self
pub fn with_created_by(self, value: impl Into<String>) -> Self
Sets Self::created_by to Some(value), consuming and returning self.
Sourcepub fn with_created_at(self, value: i64) -> Self
pub fn with_created_at(self, value: i64) -> Self
Sets Self::created_at to Some(value), consuming and returning self.
Trait Implementations§
Source§impl Clone for StagingTable
impl Clone for StagingTable
Source§fn clone(&self) -> StagingTable
fn clone(&self) -> StagingTable
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StagingTable
impl Debug for StagingTable
Source§impl Default for StagingTable
impl Default for StagingTable
Source§fn default() -> StagingTable
fn default() -> StagingTable
Source§impl DefaultInstance for StagingTable
impl DefaultInstance for StagingTable
Source§fn default_instance() -> &'static Self
fn default_instance() -> &'static Self
Source§impl<'de> Deserialize<'de> for StagingTablewhere
StagingTable: Default,
impl<'de> Deserialize<'de> for StagingTablewhere
StagingTable: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl ExtensionSet for StagingTable
impl ExtensionSet for StagingTable
Source§const PROTO_FQN: &'static str = "unitycatalog.staging_tables.v1.StagingTable"
const PROTO_FQN: &'static str = "unitycatalog.staging_tables.v1.StagingTable"
"google.protobuf.FieldOptions". Read moreSource§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Source§fn unknown_fields_mut(&mut self) -> &mut UnknownFields
fn unknown_fields_mut(&mut self) -> &mut UnknownFields
Source§fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
Source§fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
Source§fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
true if any record at the extension’s field number is present. Read moreSource§fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
Source§fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
[default = ...]
value if absent, or the type’s Default if no proto default was declared. Read moreSource§impl From<StagingTable> for Resource
impl From<StagingTable> for Resource
Source§fn from(v: StagingTable) -> Self
fn from(v: StagingTable) -> Self
Source§impl HasMessageView for StagingTable
impl HasMessageView for StagingTable
Source§type View<'a> = StagingTableView<'a>
type View<'a> = StagingTableView<'a>
Self, borrowing from a buffer with lifetime
'a.Source§type ViewHandle = StagingTableOwnedView
type ViewHandle = StagingTableOwnedView
'static owned-view handle for Self
(FooOwnedView).Source§fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
Source§fn decode_view_handle_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self::ViewHandle, DecodeError>
Source§impl Message for StagingTable
impl Message for StagingTable
Source§fn compute_size(&self, _cache: &mut SizeCache) -> u32
fn compute_size(&self, _cache: &mut SizeCache) -> u32
Returns the total encoded size in bytes.
The result is a u32; the protobuf specification requires all
messages to fit within 2 GiB (2,147,483,647 bytes), so a
compliant message will never overflow this type.
Source§fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl BufMut)
fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl BufMut)
cache (populated by a prior
compute_size call on the same cache). Read moreSource§fn merge_field(
&mut self,
tag: Tag,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_field( &mut self, tag: Tag, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
buf. Read moreSource§fn encode(&self, buf: &mut impl BufMut)
fn encode(&self, buf: &mut impl BufMut)
Source§fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
SizeCache, for
reuse across many encodes in a hot loop. Clears the cache first.Source§fn encoded_len(&self) -> u32
fn encoded_len(&self) -> u32
Source§fn encode_length_delimited(&self, buf: &mut impl BufMut)
fn encode_length_delimited(&self, buf: &mut impl BufMut)
Source§fn encode_to_bytes(&self) -> Bytes
fn encode_to_bytes(&self) -> Bytes
bytes::Bytes. Read moreSource§fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn merge_to_limit(
&mut self,
buf: &mut impl Buf,
depth: u32,
limit: usize,
) -> Result<(), DecodeError>
fn merge_to_limit( &mut self, buf: &mut impl Buf, depth: u32, limit: usize, ) -> Result<(), DecodeError>
Source§fn merge_group(
&mut self,
buf: &mut impl Buf,
depth: u32,
field_number: u32,
) -> Result<(), DecodeError>
fn merge_group( &mut self, buf: &mut impl Buf, depth: u32, field_number: u32, ) -> Result<(), DecodeError>
buf, reading fields until an
EndGroup tag with the given field_number is encountered. Read moreSource§fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
Source§fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
Source§fn merge_length_delimited(
&mut self,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_length_delimited( &mut self, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
Source§impl MessageName for StagingTable
impl MessageName for StagingTable
Source§const PACKAGE: &'static str = "unitycatalog.staging_tables.v1"
const PACKAGE: &'static str = "unitycatalog.staging_tables.v1"
Source§const NAME: &'static str = "StagingTable"
const NAME: &'static str = "StagingTable"
. between nesting levels. Read more