diff options
author | Sean Owen <sowen@cloudera.com> | 2016-11-19 09:00:11 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-11-19 09:00:11 +0000 |
commit | db9fb9baacbf8640dd37a507b7450db727c7e6ea (patch) | |
tree | 26b59a6df66eee13d65dc438c8fa954736a85f90 /external | |
parent | 2a40de408b5eb47edba92f9fe92a42ed1e78bf98 (diff) | |
download | spark-db9fb9baacbf8640dd37a507b7450db727c7e6ea.tar.gz spark-db9fb9baacbf8640dd37a507b7450db727c7e6ea.tar.bz2 spark-db9fb9baacbf8640dd37a507b7450db727c7e6ea.zip |
[SPARK-18448][CORE] SparkSession should implement java.lang.AutoCloseable like JavaSparkContext
## What changes were proposed in this pull request?
Just adds `close()` + `Closeable` as a synonym for `stop()`. This makes it usable in Java in try-with-resources, as suggested by ash211 (`Closeable` extends `AutoCloseable` BTW)
## How was this patch tested?
Existing tests
Author: Sean Owen <sowen@cloudera.com>
Closes #15932 from srowen/SPARK-18448.
Diffstat (limited to 'external')
0 files changed, 0 insertions, 0 deletions