Hi Reynold,

Pls find the PR here [1]

[1] https://github.com/apache/spark/pull/5832

On Thu, Apr 30, 2015 at 11:34 AM, Reynold Xin <r...@databricks.com> wrote:

> 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.per...@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
>>
>
>


-- 
Niranda

Reply via email to