pub enum IcebergTransactionMode {
None,
Snapshot,
Catchup,
Always,
}Expand description
Iceberg table transaction mode.
Determines how the connector breaks up its input into Feldera transactions.
none- the connector does not group its input into transactions.snapshot- ingest the initial snapshot in one or more transactions (see below). Changes ingested afterward, in the follow phase, are not grouped into transactions.catchup- ingest the initial snapshot likesnapshot. In the follow phase, the connector batches all currently available table commits into a single transaction. Once that transaction completes, it checks for commits added since the transaction began, ingests them in the next transaction, and repeats continuously. Most efficient for backfill and steady-state following.always- ingest the initial snapshot likesnapshot. In the follow phase, each table commit is ingested in its own transaction.
§How the table snapshot is ingested using transactions
For the initial snapshot (snapshot, catchup, and always all behave the same), the
connector ingests the snapshot in one or several transactions, depending on timestamp_column.
If timestamp_column is not set, the whole snapshot is ingested in a single Feldera
transaction. If timestamp_column is set, the connector ingests the snapshot in a series of
timestamp ranges of width equal to the LATENESS attribute of the column, each range in a
separate transaction.
JSON schema
{
"description": "Iceberg table transaction mode.\n\nDetermines how the connector breaks up its input into Feldera transactions.\n\n* `none` - the connector does not group its input into transactions.\n* `snapshot` - ingest the initial snapshot in one or more transactions (see below). Changes\ningested afterward, in the follow phase, are not grouped into transactions.\n* `catchup` - ingest the initial snapshot like `snapshot`. In the follow phase, the connector\nbatches all currently available table commits into a single transaction. Once that transaction\ncompletes, it checks for commits added since the transaction began, ingests them in the next\ntransaction, and repeats continuously. Most efficient for backfill and steady-state following.\n* `always` - ingest the initial snapshot like `snapshot`. In the follow phase, each table commit\nis ingested in its own transaction.\n\n# How the table snapshot is ingested using transactions\n\nFor the initial snapshot (`snapshot`, `catchup`, and `always` all behave the same), the\nconnector ingests the snapshot in one or several transactions, depending on `timestamp_column`.\nIf `timestamp_column` is not set, the whole snapshot is ingested in a single Feldera\ntransaction. If `timestamp_column` is set, the connector ingests the snapshot in a series of\ntimestamp ranges of width equal to the `LATENESS` attribute of the column, each range in a\nseparate transaction.",
"type": "string",
"enum": [
"none",
"snapshot",
"catchup",
"always"
]
}Variants§
Trait Implementations§
Source§impl Clone for IcebergTransactionMode
impl Clone for IcebergTransactionMode
Source§fn clone(&self) -> IcebergTransactionMode
fn clone(&self) -> IcebergTransactionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IcebergTransactionMode
Source§impl Debug for IcebergTransactionMode
impl Debug for IcebergTransactionMode
Source§impl<'de> Deserialize<'de> for IcebergTransactionMode
impl<'de> Deserialize<'de> for IcebergTransactionMode
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for IcebergTransactionMode
impl Display for IcebergTransactionMode
impl Eq for IcebergTransactionMode
Source§impl From<&IcebergTransactionMode> for IcebergTransactionMode
impl From<&IcebergTransactionMode> for IcebergTransactionMode
Source§fn from(value: &IcebergTransactionMode) -> Self
fn from(value: &IcebergTransactionMode) -> Self
Converts to this type from the input type.
Source§impl FromStr for IcebergTransactionMode
impl FromStr for IcebergTransactionMode
Source§impl Hash for IcebergTransactionMode
impl Hash for IcebergTransactionMode
Source§impl Ord for IcebergTransactionMode
impl Ord for IcebergTransactionMode
Source§fn cmp(&self, other: &IcebergTransactionMode) -> Ordering
fn cmp(&self, other: &IcebergTransactionMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for IcebergTransactionMode
impl PartialEq for IcebergTransactionMode
Source§impl PartialOrd for IcebergTransactionMode
impl PartialOrd for IcebergTransactionMode
Source§impl Serialize for IcebergTransactionMode
impl Serialize for IcebergTransactionMode
impl StructuralPartialEq for IcebergTransactionMode
Source§impl TryFrom<&String> for IcebergTransactionMode
impl TryFrom<&String> for IcebergTransactionMode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for IcebergTransactionMode
impl TryFrom<&str> for IcebergTransactionMode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for IcebergTransactionMode
impl TryFrom<String> for IcebergTransactionMode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for IcebergTransactionMode
impl RefUnwindSafe for IcebergTransactionMode
impl Send for IcebergTransactionMode
impl Sync for IcebergTransactionMode
impl Unpin for IcebergTransactionMode
impl UnsafeUnpin for IcebergTransactionMode
impl UnwindSafe for IcebergTransactionMode
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.