Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.0.2
-
None
Description
After discussion in SPARK-2972, it seems like a good idea to allow Java developers to use Java 7 automatic resource management with JavaSparkContext, like so:
try (JavaSparkContext ctx = new JavaSparkContext(...)) { return br.readLine(); }
Attachments
Attachments
Issue Links
- is related to
-
SPARK-3471 Automatic resource manager for SparkContext in Scala?
- Resolved
- relates to
-
SPARK-3458 enable use of python's "with" statements for SparkContext management
- Resolved
-
SPARK-1477 Add the lifecycle interface
- Resolved
- links to