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()
ConnectorPageSource
getTotalBytes
in interface ConnectorPageSource
public long getCompletedBytes()
ConnectorPageSource
getCompletedBytes
in interface ConnectorPageSource
public long getReadTimeNanos()
ConnectorPageSource
getReadTimeNanos
in interface ConnectorPageSource
public void close()
ConnectorPageSource
close
in interface ConnectorPageSource
close
in interface Closeable
close
in interface AutoCloseable
public boolean isFinished()
ConnectorPageSource
isFinished
in interface ConnectorPageSource
public Page getNextPage()
ConnectorPageSource
getNextPage
in interface ConnectorPageSource
Copyright © 2012-2015. All Rights Reserved.