Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 30681 invoked from network); 18 Feb 2010 14:37:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2010 14:37:20 -0000 Received: (qmail 81562 invoked by uid 500); 18 Feb 2010 14:37:19 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 81503 invoked by uid 500); 18 Feb 2010 14:37:19 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 81492 invoked by uid 99); 18 Feb 2010 14:37:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2010 14:37:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@day.com designates 207.126.148.88 as permitted sender) Received: from [207.126.148.88] (HELO eu3sys201aog102.obsmtp.com) (207.126.148.88) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 18 Feb 2010 14:37:09 +0000 Received: from source ([209.85.220.210]) by eu3sys201aob102.postini.com ([207.126.154.11]) with SMTP ID DSNKS31QgONcFkLDZ9A7to0NzOESKezPqfZ3@postini.com; Thu, 18 Feb 2010 14:36:48 UTC Received: by fxm2 with SMTP id 2so174799fxm.7 for ; Thu, 18 Feb 2010 06:36:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.17.155 with SMTP id s27mr11986839faa.13.1266503805098; Thu, 18 Feb 2010 06:36:45 -0800 (PST) In-Reply-To: <4B7D4FC1.2030901@gmail.com> References: <4B7D4ACB.5010809@gmail.com> <4B7D4FC1.2030901@gmail.com> Date: Thu, 18 Feb 2010 15:36:44 +0100 Message-ID: Subject: Re: Jackrabbit 2.0 QueryResult.getNodes().getSize() returning -1 From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Feb 18, 2010 at 15:33, Sergiy Shyrkov wrote: > Thank you, Guo! > I should have searched in dev list also. Note that it this is explicitly mentioned also right in the javadocs of getSize(), for both JCR 1.0 and 2.0: http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/RangeIterator.html#getSize() http://www.day.com/maven/jsr170/javadocs/jcr-2.0/javax/jcr/RangeIterator.html#getSize() Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com