Interface SupportsPushDownTopN
- All Superinterfaces:
ScanBuilder
A mix-in interface for
ScanBuilder
. Data sources can implement this interface to
push down top N(query with ORDER BY ... LIMIT n). We can push down top N with many other
operations if they follow the operator order we defined in ScanBuilder
's class doc.- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Whether the top N is partially pushed or not.boolean
Pushes down top N to the data source.Methods inherited from interface org.apache.spark.sql.connector.read.ScanBuilder
build
-
Method Details
-
pushTopN
Pushes down top N to the data source. -
isPartiallyPushed
default boolean isPartiallyPushed()Whether the top N is partially pushed or not. If it returns true, then Spark will do top N again. This method will only be called whenpushTopN(org.apache.spark.sql.connector.expressions.SortOrder[], int)
returns true.
-