Skip to content
Snippets Groups Projects
  • Sean Owen's avatar
    306ff187
    SPARK-5270 [CORE] Provide isEmpty() function in RDD API · 306ff187
    Sean Owen authored
    Pretty minor, but submitted for consideration -- this would at least help people make this check in the most efficient way I know.
    
    Author: Sean Owen <sowen@cloudera.com>
    
    Closes #4074 from srowen/SPARK-5270 and squashes the following commits:
    
    66885b8 [Sean Owen] Add note that JavaRDDLike should not be implemented by user code
    2e9b490 [Sean Owen] More tests, and Mima-exclude the new isEmpty method in JavaRDDLike
    28395ff [Sean Owen] Add isEmpty to Java, Python
    7dd04b7 [Sean Owen] Add efficient RDD.isEmpty()
    306ff187
    History
    SPARK-5270 [CORE] Provide isEmpty() function in RDD API
    Sean Owen authored
    Pretty minor, but submitted for consideration -- this would at least help people make this check in the most efficient way I know.
    
    Author: Sean Owen <sowen@cloudera.com>
    
    Closes #4074 from srowen/SPARK-5270 and squashes the following commits:
    
    66885b8 [Sean Owen] Add note that JavaRDDLike should not be implemented by user code
    2e9b490 [Sean Owen] More tests, and Mima-exclude the new isEmpty method in JavaRDDLike
    28395ff [Sean Owen] Add isEmpty to Java, Python
    7dd04b7 [Sean Owen] Add efficient RDD.isEmpty()