[
https://issues.apache.org/jira/browse/IGNITE-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294998#comment-15294998
]
Biao Ma commented on IGNITE-2538:
---------------------------------
Like blow?
override def isEmpty(): Boolean = {
val cache = ensureCache()
return cache.size() <= 0
}
If my understanding is not biased, I' ll have a try.
> RDD.isEmpty method should be overriden in IgniteRDD to use IgniteCache API
> --------------------------------------------------------------------------
>
> Key: IGNITE-2538
> URL: https://issues.apache.org/jira/browse/IGNITE-2538
> Project: Ignite
> Issue Type: Improvement
> Components: Ignite RDD
> Reporter: Valentin Kulichenko
>
> Currently calling {{IgniteRDD.isEmpty}} ends up in execution of 1024 Spark
> jobs, which is not fast. We should override this method and use native
> {{IgniteCache}} API there. Other methods should be also revisited.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)