@Evolving public interface SupportsReportStatistics extends Scan
Scan
. Data sources can implement this interface to
report statistics to Spark.
As of Spark 3.0, statistics are reported to the optimizer after operators are pushed to the data source. Implementations may return more accurate statistics based on pushed operators which may improve query performance by providing better information to the optimizer.
Modifier and Type | Method and Description |
---|---|
Statistics |
estimateStatistics()
Returns the estimated statistics of this data source scan.
|
description, readSchema, reportDriverMetrics, supportedCustomMetrics, toBatch, toContinuousStream, toMicroBatchStream
Statistics estimateStatistics()