Skip to content

Commit

Permalink
EXPERIMENTAL API --> EXPERIMENTAL
Browse files Browse the repository at this point in the history
  • Loading branch information
pwendell committed Apr 6, 2014
1 parent c581dce commit 4a9e90c
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions core/src/main/scala/org/apache/spark/FutureAction.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.apache.spark.rdd.RDD
import org.apache.spark.scheduler.{JobFailed, JobSucceeded, JobWaiter}

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* A future for the result of an action to support cancellation. This is an extension of the
* Scala Future interface to support cancellation.
*/
Expand Down Expand Up @@ -85,7 +85,7 @@ trait FutureAction[T] extends Future[T] {


/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* A [[FutureAction]] holding the result of an action that triggers a single job. Examples include
* count, collect, reduce.
*/
Expand Down Expand Up @@ -150,7 +150,7 @@ class SimpleFutureAction[T] private[spark](jobWaiter: JobWaiter[_], resultFunc:


/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* A [[FutureAction]] for actions that could trigger multiple Spark jobs. Examples include take,
* takeSample. Cancellation works by setting the cancelled flag to true and interrupting the
* action thread if it is being blocked by a job.
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ class SparkContext(config: SparkConf)
}

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* Submit a job for execution and return a FutureJob holding the result.
*/
def submitJob[T, U, R](
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ package org.apache
* for Spark programming APIs in Java.
*
* Classes and methods marked with <span class="badge" style="background-color: #257080">
* EXPERIMENTAL API</span> are user-facing features which have not been officially adopted by the
* EXPERIMENTAL</span> are user-facing features which have not been officially adopted by the
* Spark project. These are subject to change or removal in minor releases.
*
* Classes and methods marked with <span class="badge" style="background-color: #44751E">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.apache.spark.partial

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* A Double value with error bars and associated confidence.
*/
class BoundedDouble(val mean: Double, val confidence: Double, val low: Double, val high: Double) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.apache.spark.partial

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
*/
class PartialResult[R](initialVal: R, isFinal: Boolean) {
private var finalValue: Option[R] = if (isFinal) Some(initialVal) else None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import scala.reflect.ClassTag
import org.apache.spark.{ComplexFutureAction, FutureAction, Logging}

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* A set of asynchronous RDD actions available through an implicit conversion.
* Import `org.apache.spark.SparkContext._` at the top of your program to use these functions.
*/
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/scala/org/apache/spark/rdd/RDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ abstract class RDD[T: ClassTag](
def count(): Long = sc.runJob(this, Utils.getIteratorSize _).sum

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
*
* Approximate version of count() that returns a potentially incomplete result
* within a timeout, even if not all tasks have finished.
Expand Down Expand Up @@ -831,7 +831,7 @@ abstract class RDD[T: ClassTag](
}

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
*
* Approximate version of countByValue().
*/
Expand All @@ -855,7 +855,7 @@ abstract class RDD[T: ClassTag](
}

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* Return approximate number of distinct elements in the RDD.
*
* The accuracy of approximation can be controlled through the relative standard deviation
Expand Down
8 changes: 4 additions & 4 deletions sql/core/src/main/scala/org/apache/spark/sql/SchemaRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class SchemaRDD(
Filter(ScalaUdf(udf, BooleanType, Seq(UnresolvedAttribute(arg1.name))), logicalPlan))

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* Filters tuples using a function over a `Dynamic` version of a given Row. DynamicRows use
* scala's Dynamic trait to emulate an ORM of in a dynamically typed language. Since the type of
* the column is not known at compile time, all attributes are converted to strings before
Expand All @@ -258,7 +258,7 @@ class SchemaRDD(
Filter(ScalaUdf(dynamicUdf, BooleanType, Seq(WrapDynamic(logicalPlan.output))), logicalPlan))

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* Returns a sampled version of the underlying dataset.
*
* @group Query
Expand All @@ -270,7 +270,7 @@ class SchemaRDD(
new SchemaRDD(sqlContext, Sample(fraction, withReplacement, seed, logicalPlan))

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* Applies the given Generator, or table generating function, to this relation.
*
* @param generator A table generating function. The API for such functions is likely to change
Expand All @@ -294,7 +294,7 @@ class SchemaRDD(
new SchemaRDD(sqlContext, Generate(generator, join, outer, None, logicalPlan))

/**
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL API</span>
* <span class="badge" style="float: right; background-color: #257080;">EXPERIMENTAL</span>
* Adds the rows from this RDD to the specified table. Note in a standard [[SQLContext]] there is
* no notion of persistent tables, and thus queries that contain this operator will fail to
* optimize. When working with an extension of a SQLContext that has a persistent catalog, such
Expand Down

0 comments on commit 4a9e90c

Please sign in to comment.