pub struct TableProperties {
pub commit_num_retries: usize,
pub commit_min_retry_wait_ms: u64,
pub commit_max_retry_wait_ms: u64,
pub commit_total_retry_timeout_ms: u64,
pub write_format_default: String,
pub write_target_file_size_bytes: usize,
}Expand description
TableProperties that contains the properties of a table.
Fields§
§commit_num_retries: usizeThe number of times to retry a commit.
commit_min_retry_wait_ms: u64The minimum wait time between retries.
commit_max_retry_wait_ms: u64The maximum wait time between retries.
commit_total_retry_timeout_ms: u64The total timeout for commit retries.
write_format_default: StringThe default format for files.
write_target_file_size_bytes: usizeThe target file size for files.
Implementations§
Source§impl TableProperties
impl TableProperties
Sourcepub const PROPERTY_FORMAT_VERSION: &str = "format-version"
pub const PROPERTY_FORMAT_VERSION: &str = "format-version"
Reserved table property for table format version.
Iceberg will default a new table’s format version to the latest stable and recommended version. This reserved property keyword allows users to override the Iceberg format version of the table metadata.
If this table property exists when creating a table, the table will use the specified format version. If a table updates this property, it will try to upgrade to the specified format version.
Sourcepub const PROPERTY_UUID: &str = "uuid"
pub const PROPERTY_UUID: &str = "uuid"
Reserved table property for table UUID.
Sourcepub const PROPERTY_SNAPSHOT_COUNT: &str = "snapshot-count"
pub const PROPERTY_SNAPSHOT_COUNT: &str = "snapshot-count"
Reserved table property for the total number of snapshots.
Sourcepub const PROPERTY_CURRENT_SNAPSHOT_SUMMARY: &str = "current-snapshot-summary"
pub const PROPERTY_CURRENT_SNAPSHOT_SUMMARY: &str = "current-snapshot-summary"
Reserved table property for current snapshot summary.
Sourcepub const PROPERTY_CURRENT_SNAPSHOT_ID: &str = "current-snapshot-id"
pub const PROPERTY_CURRENT_SNAPSHOT_ID: &str = "current-snapshot-id"
Reserved table property for current snapshot id.
Sourcepub const PROPERTY_CURRENT_SNAPSHOT_TIMESTAMP: &str = "current-snapshot-timestamp-ms"
pub const PROPERTY_CURRENT_SNAPSHOT_TIMESTAMP: &str = "current-snapshot-timestamp-ms"
Reserved table property for current snapshot timestamp.
Sourcepub const PROPERTY_CURRENT_SCHEMA: &str = "current-schema"
pub const PROPERTY_CURRENT_SCHEMA: &str = "current-schema"
Reserved table property for the JSON representation of current schema.
Sourcepub const PROPERTY_DEFAULT_PARTITION_SPEC: &str = "default-partition-spec"
pub const PROPERTY_DEFAULT_PARTITION_SPEC: &str = "default-partition-spec"
Reserved table property for the JSON representation of current(default) partition spec.
Sourcepub const PROPERTY_DEFAULT_SORT_ORDER: &str = "default-sort-order"
pub const PROPERTY_DEFAULT_SORT_ORDER: &str = "default-sort-order"
Reserved table property for the JSON representation of current(default) sort order.
Sourcepub const PROPERTY_METADATA_PREVIOUS_VERSIONS_MAX: &str = "write.metadata.previous-versions-max"
pub const PROPERTY_METADATA_PREVIOUS_VERSIONS_MAX: &str = "write.metadata.previous-versions-max"
Property key for max number of previous versions to keep.
Sourcepub const PROPERTY_METADATA_PREVIOUS_VERSIONS_MAX_DEFAULT: usize = 100usize
pub const PROPERTY_METADATA_PREVIOUS_VERSIONS_MAX_DEFAULT: usize = 100usize
Default value for max number of previous versions to keep.
Sourcepub const PROPERTY_WRITE_PARTITION_SUMMARY_LIMIT: &str = "write.summary.partition-limit"
pub const PROPERTY_WRITE_PARTITION_SUMMARY_LIMIT: &str = "write.summary.partition-limit"
Property key for max number of partitions to keep summary stats for.
Sourcepub const PROPERTY_WRITE_PARTITION_SUMMARY_LIMIT_DEFAULT: u64 = 0u64
pub const PROPERTY_WRITE_PARTITION_SUMMARY_LIMIT_DEFAULT: u64 = 0u64
Default value for the max number of partitions to keep summary stats for.
Sourcepub const RESERVED_PROPERTIES: [&str; 9]
pub const RESERVED_PROPERTIES: [&str; 9]
Reserved Iceberg table properties list.
Reserved table properties are only used to control behaviors when creating or updating a table. The value of these properties are not persisted as a part of the table metadata.
Sourcepub const PROPERTY_COMMIT_NUM_RETRIES: &str = "commit.retry.num-retries"
pub const PROPERTY_COMMIT_NUM_RETRIES: &str = "commit.retry.num-retries"
Property key for number of commit retries.
Sourcepub const PROPERTY_COMMIT_NUM_RETRIES_DEFAULT: usize = 4usize
pub const PROPERTY_COMMIT_NUM_RETRIES_DEFAULT: usize = 4usize
Default value for number of commit retries.
Sourcepub const PROPERTY_COMMIT_MIN_RETRY_WAIT_MS: &str = "commit.retry.min-wait-ms"
pub const PROPERTY_COMMIT_MIN_RETRY_WAIT_MS: &str = "commit.retry.min-wait-ms"
Property key for minimum wait time (ms) between retries.
Sourcepub const PROPERTY_COMMIT_MIN_RETRY_WAIT_MS_DEFAULT: u64 = 100u64
pub const PROPERTY_COMMIT_MIN_RETRY_WAIT_MS_DEFAULT: u64 = 100u64
Default value for minimum wait time (ms) between retries.
Sourcepub const PROPERTY_COMMIT_MAX_RETRY_WAIT_MS: &str = "commit.retry.max-wait-ms"
pub const PROPERTY_COMMIT_MAX_RETRY_WAIT_MS: &str = "commit.retry.max-wait-ms"
Property key for maximum wait time (ms) between retries.
Sourcepub const PROPERTY_COMMIT_MAX_RETRY_WAIT_MS_DEFAULT: u64 = 60_000u64
pub const PROPERTY_COMMIT_MAX_RETRY_WAIT_MS_DEFAULT: u64 = 60_000u64
Default value for maximum wait time (ms) between retries.
Sourcepub const PROPERTY_COMMIT_TOTAL_RETRY_TIME_MS: &str = "commit.retry.total-timeout-ms"
pub const PROPERTY_COMMIT_TOTAL_RETRY_TIME_MS: &str = "commit.retry.total-timeout-ms"
Property key for total maximum retry time (ms).
Sourcepub const PROPERTY_COMMIT_TOTAL_RETRY_TIME_MS_DEFAULT: u64 = 1_800_000u64
pub const PROPERTY_COMMIT_TOTAL_RETRY_TIME_MS_DEFAULT: u64 = 1_800_000u64
Default value for total maximum retry time (ms).
Sourcepub const PROPERTY_DEFAULT_FILE_FORMAT: &str = "write.format.default"
pub const PROPERTY_DEFAULT_FILE_FORMAT: &str = "write.format.default"
Default file format for data files
Sourcepub const PROPERTY_DELETE_DEFAULT_FILE_FORMAT: &str = "write.delete.format.default"
pub const PROPERTY_DELETE_DEFAULT_FILE_FORMAT: &str = "write.delete.format.default"
Default file format for delete files
Sourcepub const PROPERTY_DEFAULT_FILE_FORMAT_DEFAULT: &str = "parquet"
pub const PROPERTY_DEFAULT_FILE_FORMAT_DEFAULT: &str = "parquet"
Default value for data file format
Sourcepub const PROPERTY_WRITE_TARGET_FILE_SIZE_BYTES: &str = "write.target-file-size-bytes"
pub const PROPERTY_WRITE_TARGET_FILE_SIZE_BYTES: &str = "write.target-file-size-bytes"
Target file size for newly written files.
Sourcepub const PROPERTY_WRITE_TARGET_FILE_SIZE_BYTES_DEFAULT: usize = 536_870_912usize
pub const PROPERTY_WRITE_TARGET_FILE_SIZE_BYTES_DEFAULT: usize = 536_870_912usize
Default target file size
Trait Implementations§
Source§impl Debug for TableProperties
impl Debug for TableProperties
Auto Trait Implementations§
impl Freeze for TableProperties
impl RefUnwindSafe for TableProperties
impl Send for TableProperties
impl Sync for TableProperties
impl Unpin for TableProperties
impl UnwindSafe for TableProperties
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more