From dev-return-36718-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Mon Dec 3 09:14:01 2012 Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33CA6D577 for ; Mon, 3 Dec 2012 09:14:01 +0000 (UTC) Received: (qmail 33159 invoked by uid 500); 3 Dec 2012 09:14:00 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 33009 invoked by uid 500); 3 Dec 2012 09:14:00 -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 32960 invoked by uid 99); 3 Dec 2012 09:13:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 09:13:59 +0000 Date: Mon, 3 Dec 2012 09:13:58 +0000 (UTC) From: "Alex Parvulescu (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1051804276.52507.1354526039037.JavaMail.jiratomcat@arcas> In-Reply-To: <1213591649.48698.1354354319512.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (JCR-3474) Add JackrabbitQueryResult.getTotalSize() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508598#comment-13508598 ] Alex Parvulescu commented on JCR-3474: -------------------------------------- With this fix you also removed the possibility to run this test from outside jackrabbit :( We had this test included in Oak as well, and {{isJackrabbitImpl}} the flag allowed us to prevent a class cast exception. > Add JackrabbitQueryResult.getTotalSize() > ---------------------------------------- > > Key: JCR-3474 > URL: https://issues.apache.org/jira/browse/JCR-3474 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-api, jackrabbit-core > Reporter: Jukka Zitting > Assignee: Jukka Zitting > Priority: Minor > Fix For: 2.5.3 > > > In JCR-1073 we added the QueryResultImpl.getTotalSize() method for getting the total number of matching results, regardless of possible limit or offset settings. It would be nice if this method was available through a JackrabbitQueryResult extension interface instead of just by casting a QueryResult instance to the QueryResultImpl implementation class. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira