@Evolving public interface Scan
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Predicate> |
getRemainingFilter()
Get the remaining filter that is not guaranteed to be satisfied for the data Delta Kernel
returns.
|
CloseableIterator<FilteredColumnarBatch> |
getScanFiles(TableClient tableClient)
Get an iterator of data files to scan.
|
Row |
getScanState(TableClient tableClient)
Get the scan state associated with the current scan.
|
static CloseableIterator<FilteredColumnarBatch> |
readData(TableClient tableClient,
Row scanState,
CloseableIterator<Row> scanFileRowIter,
java.util.Optional<Predicate> predicate)
Get the data from the given scan files using the connector provided
TableClient . |
CloseableIterator<FilteredColumnarBatch> getScanFiles(TableClient tableClient)
tableClient
- TableClient
instance to use in Delta Kernel.java.util.Optional<Predicate> getRemainingFilter()
Row getScanState(TableClient tableClient)
tableClient
- TableClient
instance to use in Delta Kernel.static CloseableIterator<FilteredColumnarBatch> readData(TableClient tableClient, Row scanState, CloseableIterator<Row> scanFileRowIter, java.util.Optional<Predicate> predicate) throws java.io.IOException
TableClient
.tableClient
- Connector provided TableClient
implementation.scanState
- Scan state returned by getScanState(TableClient)
scanFileRowIter
- an iterator of Row
s. Each Row
represents one scan file
from the FilteredColumnarBatch
returned by
getScanFiles(TableClient)
predicate
- An optional predicate that can be used for data skipping while reading
the scan files.java.io.IOException
- when error occurs while reading the data.