public class FixedPageSource extends Object implements ConnectorPageSource
NOT_BLOCKED| Constructor and Description |
|---|
FixedPageSource(Iterable<Page> pages) |
| 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.
|
long |
getSystemMemoryUsage()
Get the total memory that needs to be reserved in the general memory pool.
|
boolean |
isFinished()
Will this page source product more pages?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRuntimeStats, isBlockedpublic void close()
throws IOException
ConnectorPageSourceclose in interface ConnectorPageSourceclose in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getCompletedBytes()
ConnectorPageSourcegetCompletedBytes in interface ConnectorPageSourcepublic long getCompletedPositions()
ConnectorPageSourcegetCompletedPositions in interface ConnectorPageSourcepublic long getReadTimeNanos()
ConnectorPageSourcegetReadTimeNanos in interface ConnectorPageSourcepublic boolean isFinished()
ConnectorPageSourceisFinished in interface ConnectorPageSourcepublic Page getNextPage()
ConnectorPageSourcegetNextPage in interface ConnectorPageSourcepublic long getSystemMemoryUsage()
ConnectorPageSourcegetSystemMemoryUsage in interface ConnectorPageSourceCopyright © 2012–2022. All rights reserved.