public class FixedPageSource extends Object implements ConnectorPageSource
| 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.
|
Page |
getNextPage()
Gets the next page of data.
|
long |
getReadTimeNanos()
Gets the wall time this page source spent reading data from the input.
|
long |
getTotalBytes()
Gets the total input bytes that will be processed by this page source.
|
boolean |
isFinished()
Will this page source product more pages?
|
public void close()
throws IOException
ConnectorPageSourceclose in interface ConnectorPageSourceclose in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getTotalBytes()
ConnectorPageSourcegetTotalBytes in interface ConnectorPageSourcepublic long getCompletedBytes()
ConnectorPageSourcegetCompletedBytes in interface ConnectorPageSourcepublic long getReadTimeNanos()
ConnectorPageSourcegetReadTimeNanos in interface ConnectorPageSourcepublic boolean isFinished()
ConnectorPageSourceisFinished in interface ConnectorPageSourcepublic Page getNextPage()
ConnectorPageSourcegetNextPage in interface ConnectorPageSourceCopyright © 2012-2014. All Rights Reserved.