[ 
https://issues.apache.org/jira/browse/MNEMONIC-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16185093#comment-16185093
 ] 

Jie Liu commented on MNEMONIC-275:
----------------------------------

May need some help with the first ticket I'm working on. The following is my 
understanding of this ticket, and please let me know if I'm correct or wrong.


1. I need to work on the persist(), sync() and flush() in the ChunkBuffer.java 
file:
link: 
https://github.com/liujielj/incubator-mnemonic/blob/master/mnemonic-core/src/main/java/org/apache/mnemonic/ChunkBuffer.java


2. According to Gang's comment, I can split each function to 4 functions, so 
there will be 12 functions total to replace these 3 functions


3. Was wondering if someone could give me an example of how to split one 
function to four functions? such as how can I split the following persist() 
function:
link: 
https://github.com/liujielj/incubator-mnemonic/blob/e767d0c26c3788488fe16069851a0dc8dbd531fe/mnemonic-core/src/main/java/org/apache/mnemonic/ChunkBuffer.java#L70

Thanks a lot for help!

> Implement a default function to sync data to the persistent storage
> -------------------------------------------------------------------
>
>                 Key: MNEMONIC-275
>                 URL: https://issues.apache.org/jira/browse/MNEMONIC-275
>             Project: Mnemonic
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.9.0-incubating
>            Reporter: Johnu George
>            Assignee: Jie Liu
>             Fix For: 0.9.0-incubating
>
>
> # Currently persist(), sync(), flush() calls are exposed to the user. This is 
> confusing.  Only one call should be exposed to user that provides the default 
> functionality. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to