public class ScanBuilderImpl extends Object implements ScanBuilder
ScanBuilder.| Constructor and Description |
|---|
ScanBuilderImpl(Path dataPath,
Protocol protocol,
Metadata metadata,
StructType snapshotSchema,
LogReplay logReplay,
Engine engine) |
| Modifier and Type | Method and Description |
|---|---|
Scan |
build() |
ScanBuilder |
withFilter(Engine engine,
Predicate predicate)
Apply the given filter expression to prune any files that do not contain data satisfying
the given filter.
|
ScanBuilder |
withReadSchema(Engine engine,
StructType readSchema)
Apply the given readSchema.
|
public ScanBuilder withFilter(Engine engine, Predicate predicate)
ScanBuilderwithFilter in interface ScanBuilderengine - Engine instance to use in Delta Kernel.predicate - a Predicate to prune the metadata or data.ScanBuilder with filter applied.public ScanBuilder withReadSchema(Engine engine, StructType readSchema)
ScanBuilderwithReadSchema in interface ScanBuilderengine - Engine instance to use in Delta Kernel.readSchema - Subset of columns to read from the Delta table.ScanBuilder with projection pruning.public Scan build()
build in interface ScanBuilderinstance