Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 104 invoked from network); 13 Oct 2010 06:40:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Oct 2010 06:40:58 -0000 Received: (qmail 27087 invoked by uid 500); 13 Oct 2010 06:40:57 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 26758 invoked by uid 500); 13 Oct 2010 06:40:54 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 26751 invoked by uid 99); 13 Oct 2010 06:40:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 06:40:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 06:40:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9D6eWKY009025 for ; Wed, 13 Oct 2010 06:40:32 GMT Message-ID: <15329934.109321286952032502.JavaMail.jira@thor> Date: Wed, 13 Oct 2010 02:40:32 -0400 (EDT) From: "Simon Willnauer (JIRA)" To: dev@lucene.apache.org Subject: [jira] Created: (LUCENE-2700) Expose DocValues via Fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 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