You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Cameron Lee (Jira)" <ji...@apache.org> on 2020/04/24 17:00:00 UTC

[jira] [Created] (SAMZA-2516) Migrate BaseKeyValueStorageEngineFactory to be an abstract class instead of trait

Cameron Lee created SAMZA-2516:
----------------------------------

             Summary: Migrate BaseKeyValueStorageEngineFactory to be an abstract class instead of trait
                 Key: SAMZA-2516
                 URL: https://issues.apache.org/jira/browse/SAMZA-2516
             Project: Samza
          Issue Type: Improvement
            Reporter: Cameron Lee
            Assignee: Cameron Lee


If using Scala 2.11, there is a compile error when trying to use a Java class extend a Scala trait with implemented methods. BaseKeyValueStorageEngineFactory can be considered part of the Samza API, but it is a Scala trait with an implemented method, so that makes extension a bit restrictive.

I think the Java extension works in Scala 2.12, but we are still supporting both 2.11 and 2.12.

Also, it would be good to migrate away from Scala code in general, for consistency with other new Samza code.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)