@Evolving public interface SupportsPushDownTopN extends ScanBuilder
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.| 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.