You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2011/07/08 10:09:17 UTC

[jira] [Created] (LUCENE-3293) Use IOContext.READONCE in VarGapTermsIndexReader to load FST

Use IOContext.READONCE in VarGapTermsIndexReader to load FST
------------------------------------------------------------

                 Key: LUCENE-3293
                 URL: https://issues.apache.org/jira/browse/LUCENE-3293
             Project: Lucene - Java
          Issue Type: Task
          Components: core/codecs
    Affects Versions: 4.0
            Reporter: Simon Willnauer
            Assignee: Varun Thacker
            Priority: Minor
             Fix For: 4.0


VarGapTermsIndexReader should pass READONCE context down when it
opens/reads the FST. Yet, it should just replace the ctx passed in, ie if we are merging vs reading we want to differentiate.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (LUCENE-3293) Use IOContext.READONCE in VarGapTermsIndexReader to load FST

Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Willnauer resolved LUCENE-3293.
-------------------------------------

       Resolution: Fixed
    Lucene Fields: [New, Patch Available]  (was: [New])

committed to trunk in revision 1145755

thanks varun

> Use IOContext.READONCE in VarGapTermsIndexReader to load FST
> ------------------------------------------------------------
>
>                 Key: LUCENE-3293
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3293
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: core/codecs
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Varun Thacker
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3293.patch, LUCENE-3293.patch
>
>
> VarGapTermsIndexReader should pass READONCE context down when it
> opens/reads the FST. Yet, it should just replace the ctx passed in, ie if we are merging vs reading we want to differentiate.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-3293) Use IOContext.READONCE in VarGapTermsIndexReader to load FST

Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063771#comment-13063771 ] 

Simon Willnauer commented on LUCENE-3293:
-----------------------------------------

varun, patch looks good. I think you don't need to assign a new variable each time but pass the new IOContext directly. Can you please add javadoc comments to the new constructor to explain what it does? I don't understand your assert in the get method in the patch. can you explain?

> Use IOContext.READONCE in VarGapTermsIndexReader to load FST
> ------------------------------------------------------------
>
>                 Key: LUCENE-3293
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3293
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: core/codecs
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Varun Thacker
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3293.patch
>
>
> VarGapTermsIndexReader should pass READONCE context down when it
> opens/reads the FST. Yet, it should just replace the ctx passed in, ie if we are merging vs reading we want to differentiate.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (LUCENE-3293) Use IOContext.READONCE in VarGapTermsIndexReader to load FST

Posted by "Varun Thacker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Varun Thacker updated LUCENE-3293:
----------------------------------

    Attachment: LUCENE-3293.patch

Also edited SegmentReader#loadLiveDocs 

> Use IOContext.READONCE in VarGapTermsIndexReader to load FST
> ------------------------------------------------------------
>
>                 Key: LUCENE-3293
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3293
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: core/codecs
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Varun Thacker
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3293.patch
>
>
> VarGapTermsIndexReader should pass READONCE context down when it
> opens/reads the FST. Yet, it should just replace the ctx passed in, ie if we are merging vs reading we want to differentiate.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-3293) Use IOContext.READONCE in VarGapTermsIndexReader to load FST

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063848#comment-13063848 ] 

Michael McCandless commented on LUCENE-3293:
--------------------------------------------

Patch looks good!  Just add a space after the , in "new IOContext(context,true)" in VariableGapTermsIndexReader.java

> Use IOContext.READONCE in VarGapTermsIndexReader to load FST
> ------------------------------------------------------------
>
>                 Key: LUCENE-3293
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3293
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: core/codecs
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Varun Thacker
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3293.patch, LUCENE-3293.patch
>
>
> VarGapTermsIndexReader should pass READONCE context down when it
> opens/reads the FST. Yet, it should just replace the ctx passed in, ie if we are merging vs reading we want to differentiate.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (LUCENE-3293) Use IOContext.READONCE in VarGapTermsIndexReader to load FST

Posted by "Varun Thacker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Varun Thacker updated LUCENE-3293:
----------------------------------

    Attachment: LUCENE-3293.patch

Added javadoc to the new ctor in IOContext and also made the other changes.

> Use IOContext.READONCE in VarGapTermsIndexReader to load FST
> ------------------------------------------------------------
>
>                 Key: LUCENE-3293
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3293
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: core/codecs
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Varun Thacker
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3293.patch, LUCENE-3293.patch
>
>
> VarGapTermsIndexReader should pass READONCE context down when it
> opens/reads the FST. Yet, it should just replace the ctx passed in, ie if we are merging vs reading we want to differentiate.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-3293) Use IOContext.READONCE in VarGapTermsIndexReader to load FST

Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063787#comment-13063787 ] 

Simon Willnauer commented on LUCENE-3293:
-----------------------------------------

looks good I think this is ready to commit though.

thoughts anyone?

> Use IOContext.READONCE in VarGapTermsIndexReader to load FST
> ------------------------------------------------------------
>
>                 Key: LUCENE-3293
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3293
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: core/codecs
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Varun Thacker
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3293.patch, LUCENE-3293.patch
>
>
> VarGapTermsIndexReader should pass READONCE context down when it
> opens/reads the FST. Yet, it should just replace the ctx passed in, ie if we are merging vs reading we want to differentiate.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org