ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Biao Ma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-2538) RDD.isEmpty method should be overriden in IgniteRDD to use IgniteCache API
Date Sat, 21 May 2016 12:28:12 GMT

    [ 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)

Mime
View raw message