Skip to content

Commit

Permalink
Update doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhuai committed Feb 9, 2015
1 parent e04d908 commit 77d89dc
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 77d89dc

Please sign in to comment.