Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 89513 invoked from network); 9 Oct 2007 12:47:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2007 12:47:50 -0000 Received: (qmail 6436 invoked by uid 500); 9 Oct 2007 12:47:37 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 6403 invoked by uid 500); 9 Oct 2007 12:47:37 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 6385 invoked by uid 99); 9 Oct 2007 12:47:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 05:47:37 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 12:47:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CC04B71422B for ; Tue, 9 Oct 2007 05:46:50 -0700 (PDT) Message-ID: <11263431.1191934010833.JavaMail.jira@brutus> Date: Tue, 9 Oct 2007 05:46:50 -0700 (PDT) From: "Julian Reschke (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1166) JCR2SPI does not provide actual size on RangeIterator.getSize() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org JCR2SPI does not provide actual size on RangeIterator.getSize() --------------------------------------------------------------- Key: JCR-1166 URL: https://issues.apache.org/jira/browse/JCR-1166 Project: Jackrabbit Issue Type: Improvement Components: SPI Reporter: Julian Reschke Currently, JCR2SPI always returns -1 on RangeIterator.getSize(). This return value is legal (meaning "unknown"), but may cause clients to simply iterate through the whole list when what they really want is simply the count. Use case: "The use case is to count the number of members of a NT_FOLDER without having to open up the NT_FOLDER and count all the members (and I assume load them into memory) " To make this happen we probably need to move away from simple Iterators on the SPI level, and put quite some additional work into JCR2SPI. Feedback appreciated. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.