public class ScanBuilderImpl extends Object implements ScanBuilder
ScanBuilder.| Constructor and Description |
|---|
ScanBuilderImpl(Path dataPath,
Protocol protocol,
Metadata metadata,
StructType snapshotSchema,
LogReplay logReplay,
TableClient tableClient) |
| Modifier and Type | Method and Description |
|---|---|
Scan |
build() |
ScanBuilder |
withFilter(TableClient tableClient,
Predicate predicate)
Apply the given filter expression to prune any files that do not contain data satisfying
the given filter.
|
ScanBuilder |
withReadSchema(TableClient tableClient,
StructType readSchema)
Apply the given readSchema.
|
public ScanBuilderImpl(Path dataPath, Protocol protocol, Metadata metadata, StructType snapshotSchema, LogReplay logReplay, TableClient tableClient)
public ScanBuilder withFilter(TableClient tableClient, Predicate predicate)
ScanBuilderwithFilter in interface ScanBuildertableClient - TableClient instance to use in Delta Kernel.predicate - a Predicate to prune the metadata or data.ScanBuilder with filter applied.public ScanBuilder withReadSchema(TableClient tableClient, StructType readSchema)
ScanBuilderwithReadSchema in interface ScanBuildertableClient - TableClient 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