@Internal public interface ResultProvider
The two iterators are exclusive, that is you can use only one of the two at the same time.
This class is generated by specific sink and brings the result info to a TableResult
.
Modifier and Type | Method and Description |
---|---|
RowDataToStringConverter |
getRowDataStringConverter() |
boolean |
isFirstRowReady()
Return true if the first row is ready.
|
ResultProvider |
setJobClient(JobClient jobClient)
Set the job client associated with the select job to retrieve the result.
|
CloseableIterator<Row> |
toExternalIterator()
Returns the select result as row iterator using external data types.
|
CloseableIterator<RowData> |
toInternalIterator()
Returns the select result as row iterator using internal data types.
|
ResultProvider setJobClient(JobClient jobClient)
CloseableIterator<RowData> toInternalIterator()
toExternalIterator()
.CloseableIterator<Row> toExternalIterator()
toInternalIterator()
.RowDataToStringConverter getRowDataStringConverter()
boolean isFirstRowReady()
The first row is ready when Iterator.hasNext()
method returns true or
Iterator.next()
method returns a row.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.