Package io.trino.operator
Interface MergeRowChangeProcessor
- All Known Implementing Classes:
ChangeOnlyUpdatedColumnsMergeProcessor,DeleteAndInsertMergeProcessor
public interface MergeRowChangeProcessor
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontransformPage(Page inputPage) Transform a page generated by an SQL MERGE operation into page of data columns and operations.
-
Field Details
-
DEFAULT_CASE_OPERATION_NUMBER
static final int DEFAULT_CASE_OPERATION_NUMBER- See Also:
-
-
Method Details
-
transformPage
Transform a page generated by an SQL MERGE operation into page of data columns and operations. The SQL MERGE input page consists of the following:- The write redistribution columns, if any
- For partitioned or bucketed tables, a hash value column
- The rowId column for the row from the target table if matched, or null if not matched
- The merge case row block
- All data columns, in table column order
The operation block- The rowId block
- The last column in the resulting page is 1 if the row is an insert derived from an update, and zero otherwise.
The
DeleteAndInsertMergeProcessorimplementation will transform each UPDATE row into multiple rows: an INSERT row and a DELETE row.
-