public interface ConnectorPageSink
| Modifier and Type | Field and Description |
|---|---|
static CompletableFuture<?> |
NOT_BLOCKED |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
CompletableFuture<?> |
appendPage(Page page)
Returns a future that will be completed when the page sink can accept
more pages.
|
CompletableFuture<Collection<io.airlift.slice.Slice>> |
finish()
Notifies the connector that no more pages will be appended and returns
connector-specific information that will be sent to the coordinator to
complete the write operation.
|
default long |
getCompletedBytes()
Gets the number of output bytes written by this page source so far.
|
default long |
getSystemMemoryUsage()
Get the total memory that needs to be reserved in the general memory pool.
|
default long |
getValidationCpuNanos()
ConnectorPageSink can provide optional validation to check
the data is correctly consumed by connector (e.g.
|
static final CompletableFuture<?> NOT_BLOCKED
default long getCompletedBytes()
default long getSystemMemoryUsage()
default long getValidationCpuNanos()
This method returns the CPU spent on validation, if any.
CompletableFuture<?> appendPage(Page page)
NOT_BLOCKED.CompletableFuture<Collection<io.airlift.slice.Slice>> finish()
appendPage(com.facebook.presto.common.Page) (even if the returned
future is not complete).void abort()
Copyright © 2012–2022. All rights reserved.