dummy_spark.sql module¶
Module Context¶
-
class
dummy_spark.sql.
SQLContext
(parkContext, sqlContext=None)[source]¶ -
-
createDataFrame
(data, schema=None, samplingRatio=None)[source]¶ NotImplemented
Parameters: - data –
- schema –
- samplingRatio –
Returns:
-
createExternalTable
(tableName, path=None, source=None, schema=None, **options)[source]¶ NotImplemented
Parameters: - tableName –
- path –
- source –
- schema –
- options –
Returns:
-
inferSchema
(rdd, samplingRatio=None)[source]¶ NotImplemented
Parameters: - rdd –
- samplingRatio –
Returns:
-
jsonFile
(path, schema=None, samplingRatio=1.0)[source]¶ NotImplemented
Parameters: - path –
- schema –
- samplingRatio –
Returns:
-
jsonRDD
(rdd, schema=None, samplingRatio=1.0)[source]¶ NotImplemented
Parameters: - rdd –
- schema –
- samplingRatio –
Returns:
-
load
(path=None, source=None, schema=None, **options)[source]¶ NotImplemented
Parameters: - path –
- source –
- schema –
- options –
Returns:
-
range
(start, end=None, step=1, numPartitions=None)[source]¶ NotImplemented
Parameters: - start –
- end –
- step –
- numPartitions –
Returns:
-
read
¶ NotImplemented
Returns:
-
registerDataFrameAsTable
(df, tableName)[source]¶ NotImplemented
Parameters: - df –
- tableName –
Returns:
-