public interface ConnectorPageSource extends Closeable
| Modifier and Type | Field and Description |
|---|---|
static CompletableFuture<?> |
NOT_BLOCKED |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Immediately finishes this page source.
|
long |
getCompletedBytes()
Gets the number of input bytes processed by this page source so far.
|
long |
getCompletedPositions()
Gets the number of input rows processed by this page source so far.
|
Page |
getNextPage()
Gets the next page of data.
|
long |
getReadTimeNanos()
Gets the wall time this page source spent reading data from the input.
|
default RuntimeStats |
getRuntimeStats()
Returns the stats of this page source accumulated so far.
|
long |
getSystemMemoryUsage()
Get the total memory that needs to be reserved in the general memory pool.
|
default CompletableFuture<?> |
isBlocked()
Returns a future that will be completed when the page source becomes
unblocked.
|
boolean |
isFinished()
Will this page source product more pages?
|
static final CompletableFuture<?> NOT_BLOCKED
long getCompletedBytes()
long getCompletedPositions()
long getReadTimeNanos()
boolean isFinished()
Page getNextPage()
long getSystemMemoryUsage()
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptiondefault CompletableFuture<?> isBlocked()
NOT_BLOCKED.default RuntimeStats getRuntimeStats()
Copyright © 2012–2022. All rights reserved.