spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynold Xin <r...@databricks.com>
Subject Re: Custom PersistanceEngine and LeaderAgent implementation in Java
Date Thu, 30 Apr 2015 06:04:24 GMT
We should change the trait to abstract class, and then your problem will go
away.

Do you want to submit a pull request?


On Wed, Apr 29, 2015 at 11:02 PM, Niranda Perera <niranda.perera@gmail.com>
wrote:

> Hi,
>
> this follows the following feature in this feature [1]
>
> I'm trying to implement a custom persistence engine and a leader agent in
> the Java environment.
>
> vis-a-vis scala, when I implement the PersistenceEngine trait in java, I
> would have to implement methods such as readPersistedData, removeDriver,
> etc together with read, persist and unpersist methods.
>
> but the issue here is, methods such as readPersistedData etc are 'final
> def's, hence can not be overridden in the java environment.
>
> I am new to scala, but is there any workaround to implement the above
> traits in java?
>
> look forward to hear from you.
>
> [1] https://issues.apache.org/jira/browse/SPARK-1830
>
> --
> Niranda
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message