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 2010/11/25 11:43:14 UTC
[jira] Resolved: (LUCENE-2700) Expose DocValues via Fields
[ https://issues.apache.org/jira/browse/LUCENE-2700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Willnauer resolved LUCENE-2700.
-------------------------------------
Resolution: Fixed
this is done since a while ago - closing
> Expose DocValues via Fields
> ---------------------------
>
> Key: LUCENE-2700
> URL: https://issues.apache.org/jira/browse/LUCENE-2700
> Project: Lucene - Java
> Issue Type: New Feature
> Components: Index
> Reporter: Simon Willnauer
> Assignee: Simon Willnauer
> Fix For: CSF branch
>
>
> DocValues Reader are currently exposed / accessed directly via IndexReader. To integrate the new feature in a more "native" way we should expose the DocValues via Fields on a perSegment level and on MultiFields in the multi reader case. DocValues should be side by side with Fields.terms enabling access to Source, SortedSource and ValuesEnum something like that:
> {code}
> public abstract class Fields {
> ...
> public DocValues values();
> }
> public abstract class DocValues {
> /** on disk enum based API */
> public abstract ValuesEnum getEnum() throws IOException;
> /** in memory Random Access API - with enum support - first call loads values in ram*/
> public abstract Source getSource() throws IOException;
> /** sorted in memory Random Access API - optional operation */
> public SortedSource getSortedSource(Comparator<BytesRef> comparator) throws IOException, UnsupportedOperationException;
> /** unloads previously loaded source only but keeps the doc values open */
> public abstract unload();
> /** closes the doc values */
> public abstract close();
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org