We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 020cbdf commit b916442Copy full SHA for b916442
sql/core/src/main/scala/org/apache/spark/sql/api/java/JavaSchemaRDD.scala
@@ -218,4 +218,10 @@ class JavaSchemaRDD(
218
*/
219
def subtract(other: JavaSchemaRDD, p: Partitioner): JavaSchemaRDD =
220
this.baseSchemaRDD.subtract(other.baseSchemaRDD, p).toJavaSchemaRDD
221
+
222
+ /**
223
+ * Return an RDD with a sampled version of the underlying dataset.
224
+ */
225
+ def sample(withReplacement: Boolean, fraction: Double, seed: Long): JavaSchemaRDD =
226
+ this.baseSchemaRDD.sample(withReplacement, fraction, seed).toJavaSchemaRDD
227
}
0 commit comments