GitHub user gyfora opened a pull request:

    https://github.com/apache/flink/pull/1918

    [FLINK-3798] [streaming] Clean up RocksDB backend field/method access

    The RocksDB state backend uses a lot package private methods and fields 
which makes it very hard to subclass the different parts for added 
functionality. I think these should be protected instead.
    
    Also the AbstractRocksDBState declares some methods final when there are 
use-cases when a subclass migh want to call them.
    
    Just to give you an example I am creating a version of the value state 
which would keep a small cache on heap. For this it would be enough to subclass 
the RockDBStateBackend and RocksDBVAlue state classes if the above mentioned 
changes were made. Now I have to use reflection to access package private 
fields and actually copy classes due to final methods.
    Activity

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gyfora/flink rocks-access

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1918.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1918
    
----
commit a1e323650bd5f603fbf3809fe1fe901cbab1a56b
Author: Gyula Fora <gyf...@apache.org>
Date:   2016-04-20T19:33:30Z

    [FLINK-3798] [streaming] Clean up RocksDB backend field/method access

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to