[
https://issues.apache.org/jira/browse/LUCENE-4998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799982#comment-13799982
]
Michael McCandless commented on LUCENE-4998:
--------------------------------------------
Sorry, the above commit was really for LUCENE-5294.
> be more precise about IOContext for reads
> -----------------------------------------
>
> Key: LUCENE-4998
> URL: https://issues.apache.org/jira/browse/LUCENE-4998
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Shikhar Bhushan
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 4.5.1, 4.6, 5.0
>
> Attachments: LUCENE-4998.patch
>
>
> Set the context as {{IOContext.READ}} / {{IOContext.READONCE}} where
> applicable
> ----
> Motivation:
> Custom {{PostingsFormat}} may want to check the context on
> {{SegmentReadState}} and branch differently, but for this to work properly
> the context has to be specified correctly up the stack.
> For example, {{DirectPostingsFormat}} only loads postings into memory if the
> {{context != MERGE}}. However a better condition would be {{context ==
> Context.READ && !context.readOnce}}.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]