You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2017/11/07 09:54:00 UTC

[jira] [Updated] (LUCENE-8042) Add SegmentCachable interface

     [ https://issues.apache.org/jira/browse/LUCENE-8042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Woodward updated LUCENE-8042:
----------------------------------
    Attachment: LUCENE-8042.patch

Here is a patch adding the interface, and amending FunctionMatchQuery and FunctionScoreQuery to delegate their getCacheHelper() methods to their wrapped DoubleValuesSource.  It also moves the static helper methods for DV queries and combining multiple CacheHelpers away from Weight and onto SegmentCachable.

> Add SegmentCachable interface
> -----------------------------
>
>                 Key: LUCENE-8042
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8042
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Alan Woodward
>         Attachments: LUCENE-8042.patch
>
>
> Following LUCENE-8017, I tried to add a getCacheHelper(LeafReaderContext) method to DoubleValuesSource so that Weights that use DVS can delegate on.  This ended up with the same method being added to LongValuesSource, and some of the similar objects in spatial-extras.  I think it makes sense to abstract this out into a separate SegmentCachable interface.



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

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