public class SparkScanBuilder
extends java.lang.Object
implements org.apache.spark.sql.connector.read.ScanBuilder, org.apache.spark.sql.connector.read.SupportsPushDownFilters, org.apache.spark.sql.connector.read.SupportsPushDownRequiredColumns
Modifier and Type | Method and Description |
---|---|
org.apache.spark.sql.connector.read.Scan |
build() |
org.apache.spark.sql.connector.read.Scan |
buildCopyOnWriteScan() |
org.apache.spark.sql.connector.read.Scan |
buildMergeOnReadScan() |
SparkScanBuilder |
caseSensitive(boolean isCaseSensitive) |
void |
pruneColumns(org.apache.spark.sql.types.StructType requestedSchema) |
org.apache.spark.sql.sources.Filter[] |
pushedFilters() |
org.apache.spark.sql.sources.Filter[] |
pushFilters(org.apache.spark.sql.sources.Filter[] filters) |
SparkScanBuilder |
withMetadataColumns(java.lang.String... metadataColumns) |
public SparkScanBuilder withMetadataColumns(java.lang.String... metadataColumns)
public SparkScanBuilder caseSensitive(boolean isCaseSensitive)
public org.apache.spark.sql.sources.Filter[] pushFilters(org.apache.spark.sql.sources.Filter[] filters)
pushFilters
in interface org.apache.spark.sql.connector.read.SupportsPushDownFilters
public org.apache.spark.sql.sources.Filter[] pushedFilters()
pushedFilters
in interface org.apache.spark.sql.connector.read.SupportsPushDownFilters
public void pruneColumns(org.apache.spark.sql.types.StructType requestedSchema)
pruneColumns
in interface org.apache.spark.sql.connector.read.SupportsPushDownRequiredColumns
public org.apache.spark.sql.connector.read.Scan build()
build
in interface org.apache.spark.sql.connector.read.ScanBuilder
public org.apache.spark.sql.connector.read.Scan buildMergeOnReadScan()
public org.apache.spark.sql.connector.read.Scan buildCopyOnWriteScan()