@Experimental public interface LimitableTableSource<T>
TableSource
. A TableSource
extending
this interface is able to limit the number of records.
After pushing down, source only needs to try its best to limit the number of output records, but does not need to guarantee that the number must be less than or equal to the limit.
Modifier and Type | Method and Description |
---|---|
TableSource<T> |
applyLimit(long limit)
Check and push down the limit to the table source.
|
boolean |
isLimitPushedDown()
Return the flag to indicate whether limit push down has been tried.
|
boolean isLimitPushedDown()
applyLimit(long)
.TableSource<T> applyLimit(long limit)
limit
- the value which limit the number of records.TableSource
.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.