Package io.trino.spi.connector
Interface ConnectorMergeSink
public interface ConnectorMergeSink
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRepresents a deleted row.static final intRepresents an inserted row.static final intRepresents an old version of an updated row, to be deleted, when usingRowChangeParadigm.DELETE_ROW_AND_INSERT_ROW.static final intRepresents a new version of an updated row, to be inserted, when usingRowChangeParadigm.DELETE_ROW_AND_INSERT_ROW.static final intRepresents an updated row when usingRowChangeParadigm.CHANGE_ONLY_UPDATED_COLUMNS. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidabort()CompletableFuture<Collection<io.airlift.slice.Slice>>finish()voidstoreMergedRows(Page page) Store the page resulting from a merge.
-
Field Details
-
INSERT_OPERATION_NUMBER
static final int INSERT_OPERATION_NUMBERRepresents an inserted row.- See Also:
-
DELETE_OPERATION_NUMBER
static final int DELETE_OPERATION_NUMBERRepresents a deleted row.- See Also:
-
UPDATE_OPERATION_NUMBER
static final int UPDATE_OPERATION_NUMBERRepresents an updated row when usingRowChangeParadigm.CHANGE_ONLY_UPDATED_COLUMNS.- See Also:
-
UPDATE_INSERT_OPERATION_NUMBER
static final int UPDATE_INSERT_OPERATION_NUMBERRepresents a new version of an updated row, to be inserted, when usingRowChangeParadigm.DELETE_ROW_AND_INSERT_ROW.- See Also:
-
UPDATE_DELETE_OPERATION_NUMBER
static final int UPDATE_DELETE_OPERATION_NUMBERRepresents an old version of an updated row, to be deleted, when usingRowChangeParadigm.DELETE_ROW_AND_INSERT_ROW.- See Also:
-
-
Method Details
-
storeMergedRows
Store the page resulting from a merge. The page consists ofnchannels, numbered0..n-1:- Blocks
0..n-3in page are the data columns - Block
n-2is the tinyint operation: - Block
n-1is a connector-specific rowId column, whose handle was previously returned bygetMergeRowIdColumnHandle()
- Parameters:
page- The page to store.
- Blocks
-
finish
CompletableFuture<Collection<io.airlift.slice.Slice>> finish() -
abort
default void abort()
-