@Evolving public interface SupportsPushDownTopN extends ScanBuilder
ScanBuilder. Data sources can implement this interface to
push down top N(query with ORDER BY ... LIMIT n). Please note that the combination of top N
with other operations such as AGGREGATE, GROUP BY, CLUSTER BY, DISTRIBUTE BY, etc.
is NOT pushed down.| Modifier and Type | Method and Description |
|---|---|
default boolean |
isPartiallyPushed()
Whether the top N is partially pushed or not.
|
boolean |
pushTopN(SortOrder[] orders,
int limit)
Pushes down top N to the data source.
|
buildboolean pushTopN(SortOrder[] orders, int limit)
default boolean isPartiallyPushed()
pushTopN(org.apache.spark.sql.connector.expressions.SortOrder[], int) returns true.