Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 92247 invoked from network); 22 Nov 2007 18:36:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Nov 2007 18:36:08 -0000 Received: (qmail 63773 invoked by uid 500); 22 Nov 2007 18:35:53 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 63739 invoked by uid 500); 22 Nov 2007 18:35:53 -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 63730 invoked by uid 99); 22 Nov 2007 18:35:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2007 10:35:53 -0800 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; Thu, 22 Nov 2007 18:35:49 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A1593714233 for ; Thu, 22 Nov 2007 10:35:43 -0800 (PST) Message-ID: <25700276.1195756543658.JavaMail.jira@brutus> Date: Thu, 22 Nov 2007 10:35:43 -0800 (PST) From: "angela (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1166) JCR2SPI does not provide actual size on RangeIterator.getSize() In-Reply-To: <11263431.1191934010833.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] angela updated JCR-1166: ------------------------ Attachment: JCR-1166.patch > 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: jackrabbit-jcr2spi > Reporter: Julian Reschke > Priority: Minor > Attachments: JCR-1166.patch > > > 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.