| Constructor and Description |
|---|
ScanImpl(StructType snapshotSchema,
StructType readSchema,
Protocol protocol,
Metadata metadata,
LogReplay logReplay,
java.util.Optional<Predicate> filter,
Path dataPath) |
| 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(Engine engine)
Get an iterator of data files in this version of scan that survived the predicate pruning.
|
CloseableIterator<FilteredColumnarBatch> |
getScanFiles(Engine engine,
boolean includeStats)
Get an iterator of data files in this version of scan that survived the predicate pruning.
|
Row |
getScanState(Engine engine)
Get the scan state associated with the current scan.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformPhysicalDatapublic ScanImpl(StructType snapshotSchema, StructType readSchema, Protocol protocol, Metadata metadata, LogReplay logReplay, java.util.Optional<Predicate> filter, Path dataPath)
public CloseableIterator<FilteredColumnarBatch> getScanFiles(Engine engine)
getScanFiles in interface Scanengine - Engine instance to use in Delta Kernel.ColumnarBatch batch format. Each row correspond to one survived file.public CloseableIterator<FilteredColumnarBatch> getScanFiles(Engine engine, boolean includeStats)
When includeStats=true the JSON file statistics are always read from the log and
included in the returned columnar batches which have schema InternalScanFileUtils.SCAN_FILE_SCHEMA_WITH_STATS. When includeStats=false the JSON
file statistics may or may not be present in the returned columnar batches.
engine - the Engine instance to useincludeStats - whether to read and include the JSON statisticsFilteredColumnarBatchspublic Row getScanState(Engine engine)
ScangetScanState in interface Scanengine - Engine instance to use in Delta Kernel.Row format.public java.util.Optional<Predicate> getRemainingFilter()
ScangetRemainingFilter in interface ScanPredicate.