From 77d89dc6ac5c90e93ab0d4a5cdb11904ff7b43a5 Mon Sep 17 00:00:00 2001 From: Yin Huai Date: Sun, 8 Feb 2015 19:50:10 -0800 Subject: [PATCH] Update doc. --- .../scala/org/apache/spark/sql/SQLContext.scala | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala index a0ee1102748e6..5aca3d51589f0 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala @@ -400,8 +400,8 @@ class SQLContext(@transient val sparkContext: SparkContext) /** * :: Experimental :: - * Loads a dataset from the given path as a DataFrame. - * It will use the default data source configured in spark.sql.sources.default. + * Returns the dataset stored at path as a DataFrame, + * using the default data source configured in spark.sql.sources.default. */ @Experimental def load(path: String): DataFrame = { @@ -411,7 +411,8 @@ class SQLContext(@transient val sparkContext: SparkContext) /** * :: Experimental :: - * Loads a dataset from the given path as a DataFrame based on a given data source. + * Returns the dataset stored at path as a DataFrame, + * using the given data source. */ @Experimental def load( @@ -422,7 +423,7 @@ class SQLContext(@transient val sparkContext: SparkContext) /** * :: Experimental :: - * Loads a dataset based on a given data source and a set of options. + * Returns the dataset specified by the given data source and a set of options as a DataFrame. */ @Experimental def load( @@ -434,7 +435,7 @@ class SQLContext(@transient val sparkContext: SparkContext) /** * :: Experimental :: * (Scala-specific) - * Loads a dataset based on a given data source and a set of options. + * Returns the dataset specified by the given data source and a set of options as a DataFrame. */ @Experimental def load( @@ -446,7 +447,8 @@ class SQLContext(@transient val sparkContext: SparkContext) /** * :: Experimental :: - * Loads a dataset based on a given data source, a schema and a set of options. + * Returns the dataset specified by the given data source and a set of options as a DataFrame, + * using the given schema as the schema of the DataFrame. */ @Experimental def load( @@ -459,7 +461,8 @@ class SQLContext(@transient val sparkContext: SparkContext) /** * :: Experimental :: * (Scala-specific) - * Loads a dataset based on a given data source, a schema and a set of options. + * Returns the dataset specified by the given data source and a set of options as a DataFrame, + * using the given schema as the schema of the DataFrame. */ @Experimental def load(