public class RecordPageSource extends Object implements ConnectorPageSource
| Constructor and Description |
|---|
RecordPageSource(List<Type> types,
RecordCursor cursor) |
RecordPageSource(RecordSet recordSet) |
| 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.
|
RecordCursor |
getCursor() |
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 RecordPageSource(RecordSet recordSet)
public RecordPageSource(List<Type> types, RecordCursor cursor)
public RecordCursor getCursor()
public long getTotalBytes()
ConnectorPageSourcegetTotalBytes in interface ConnectorPageSourcepublic long getCompletedBytes()
ConnectorPageSourcegetCompletedBytes in interface ConnectorPageSourcepublic long getReadTimeNanos()
ConnectorPageSourcegetReadTimeNanos in interface ConnectorPageSourcepublic void close()
ConnectorPageSourceclose in interface ConnectorPageSourceclose in interface Closeableclose in interface AutoCloseablepublic boolean isFinished()
ConnectorPageSourceisFinished in interface ConnectorPageSourcepublic Page getNextPage()
ConnectorPageSourcegetNextPage in interface ConnectorPageSourceCopyright © 2012-2014. All Rights Reserved.