Interface SupportsPushDownTableSample
- All Superinterfaces:
ScanBuilder
A mix-in interface for
Scan. Data sources can implement this interface to
push down SAMPLE.- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanpushTableSample(double lowerBound, double upperBound, boolean withReplacement, long seed) Deprecated.default booleanpushTableSample(double lowerBound, double upperBound, boolean withReplacement, long seed, SampleMethod sampleMethod) Pushes down SAMPLE to the data source with the specified sampling method.Methods inherited from interface org.apache.spark.sql.connector.read.ScanBuilder
build
-
Method Details
-
pushTableSample
@Deprecated(since="4.2.0") default boolean pushTableSample(double lowerBound, double upperBound, boolean withReplacement, long seed) Deprecated.Pushes down BERNOULLI (row-level) SAMPLE to the data source. -
pushTableSample
default boolean pushTableSample(double lowerBound, double upperBound, boolean withReplacement, long seed, SampleMethod sampleMethod) Pushes down SAMPLE to the data source with the specified sampling method.
-