Package io.trino.spi.connector
Interface ConnectorMergeSink
public interface ConnectorMergeSink
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
abort()
CompletableFuture<Collection<io.airlift.slice.Slice>>
finish()
void
storeMergedRows
(Page page) Store the page resulting from a merge.
-
Field Details
-
INSERT_OPERATION_NUMBER
static final int INSERT_OPERATION_NUMBER- See Also:
-
DELETE_OPERATION_NUMBER
static final int DELETE_OPERATION_NUMBER- See Also:
-
UPDATE_OPERATION_NUMBER
static final int UPDATE_OPERATION_NUMBER- See Also:
-
-
Method Details
-
storeMergedRows
Store the page resulting from a merge. The page consists ofn
channels, numbered0..n-1
:- Blocks
0..n-3
in page are the data columns - Block
n-2
is the tinyint operation: - Block
n-1
is 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()
-