diff options
author | Matei Zaharia <matei@databricks.com> | 2013-12-29 20:15:07 -0500 |
---|---|---|
committer | Matei Zaharia <matei@databricks.com> | 2013-12-29 20:15:07 -0500 |
commit | eaa8a68ff08304f713f4f75d39c61c020e0e691d (patch) | |
tree | 5543260c25af21555673154c0305a07e46f4ff6c /python/pyspark/broadcast.py | |
parent | 11540b798d622f3883cb40b20cc30ea7d894790a (diff) | |
download | spark-eaa8a68ff08304f713f4f75d39c61c020e0e691d.tar.gz spark-eaa8a68ff08304f713f4f75d39c61c020e0e691d.tar.bz2 spark-eaa8a68ff08304f713f4f75d39c61c020e0e691d.zip |
Fix some Python docs and make sure to unset SPARK_TESTING in Python
tests so we don't get the test spark.conf on the classpath.
Diffstat (limited to 'python/pyspark/broadcast.py')
-rw-r--r-- | python/pyspark/broadcast.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python/pyspark/broadcast.py b/python/pyspark/broadcast.py index dfdaba274f..43f40f8783 100644 --- a/python/pyspark/broadcast.py +++ b/python/pyspark/broadcast.py @@ -45,7 +45,18 @@ def _from_id(bid): class Broadcast(object): + """ + A broadcast variable created with + L{SparkContext.broadcast()<pyspark.context.SparkContext.broadcast>}. + Access its value through C{.value}. + """ + def __init__(self, bid, value, java_broadcast=None, pickle_registry=None): + """ + Should not be called directly by users -- use + L{SparkContext.broadcast()<pyspark.context.SparkContext.broadcast>} + instead. + """ self.value = value self.bid = bid self._jbroadcast = java_broadcast |