Package io.delta.kernel.internal.data
Class TransactionStateRow
Object
io.delta.kernel.internal.data.GenericRow
io.delta.kernel.internal.data.TransactionStateRow
- All Implemented Interfaces:
Row
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetColumnMappingMode(Row transactionState) Get the column mapping mode from the transaction stateRowreturned byTransaction.getTransactionState(Engine)getConfiguration(Row transactionState) Get the configuration from the transaction stateRowreturned byTransaction.getTransactionState(Engine)static StructTypegetLogicalSchema(Row transactionState) Get the logical schema of the table from the transaction stateRowreturned byTransaction.getTransactionState(Engine)}static intgetMaxRetries(Row transactionState) Get the maxRetries from transaction stateRowreturned byTransaction.getTransactionState(Engine)getPartitionColumnsList(Row transactionState) Get the list of partition column names from the transaction stateRowreturned byTransaction.getTransactionState(Engine)static StructTypegetPhysicalSchema(Row transactionState) Get the physical schema of the table from the transaction stateRowreturned byTransaction.getTransactionState(Engine)}static ProtocolgetProtocol(Row transactionState) Get the Protocol from transaction stateRowreturned byTransaction.getTransactionState(Engine)static StringgetTablePath(Row transactionState) Get the table path from transaction stateRowreturned byTransaction.getTransactionState(Engine)static booleanisIcebergCompatV2Enabled(Row transactionState) Get the iceberg compatibility enabled or not from the transaction stateRowreturned byTransaction.getTransactionState(Engine)static booleanisIcebergCompatV3Enabled(Row transactionState) Get the iceberg compatibility enabled or not from the transaction stateRowreturned byTransaction.getTransactionState(Engine)static TransactionStateRow
-
Field Details
-
SCHEMA
-
-
Method Details
-
of
public static TransactionStateRow of(Metadata metadata, Protocol protocol, String tablePath, int maxRetries) -
getLogicalSchema
Get the logical schema of the table from the transaction stateRowreturned byTransaction.getTransactionState(Engine)}- Parameters:
transactionState- Transaction state stateRow- Returns:
- Logical schema of the table as
StructType
-
getPhysicalSchema
Get the physical schema of the table from the transaction stateRowreturned byTransaction.getTransactionState(Engine)}- Parameters:
transactionState- Transaction state stateRow- Returns:
- Logical schema of the table as
StructType
-
getConfiguration
Get the configuration from the transaction stateRowreturned byTransaction.getTransactionState(Engine)- Parameters:
transactionState-- Returns:
- Configuration as a map of key-value pairs.
-
isIcebergCompatV2Enabled
Get the iceberg compatibility enabled or not from the transaction stateRowreturned byTransaction.getTransactionState(Engine)- Parameters:
transactionState- Transaction state stateRow- Returns:
- True if iceberg compatibility is enabled, false otherwise.
-
isIcebergCompatV3Enabled
Get the iceberg compatibility enabled or not from the transaction stateRowreturned byTransaction.getTransactionState(Engine)- Parameters:
transactionState- Transaction state stateRow- Returns:
- True if iceberg compatibility is enabled, false otherwise.
-
getColumnMappingMode
Get the column mapping mode from the transaction stateRowreturned byTransaction.getTransactionState(Engine)- Parameters:
transactionState-- Returns:
- ColumnMapping mode as
ColumnMapping.ColumnMappingMode
-
getPartitionColumnsList
Get the list of partition column names from the transaction stateRowreturned byTransaction.getTransactionState(Engine)- Parameters:
transactionState- Transaction state stateRow- Returns:
- List of partition column names according to the scan state.
-
getTablePath
Get the table path from transaction stateRowreturned byTransaction.getTransactionState(Engine)- Parameters:
transactionState- Transaction state stateRow- Returns:
- Fully qualified path to the location of the table.
-
getMaxRetries
Get the maxRetries from transaction stateRowreturned byTransaction.getTransactionState(Engine) -
getProtocol
Get the Protocol from transaction stateRowreturned byTransaction.getTransactionState(Engine)- Parameters:
transactionState- Transaction state stateRow- Returns:
- Protocol object
-