Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 82064 invoked from network); 23 Feb 2010 11:18:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2010 11:18:38 -0000 Received: (qmail 24472 invoked by uid 500); 23 Feb 2010 11:18:38 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 24442 invoked by uid 500); 23 Feb 2010 11:18:38 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 24434 invoked by uid 99); 23 Feb 2010 11:18:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 11:18:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sabob1@gmail.com designates 209.85.222.188 as permitted sender) Received: from [209.85.222.188] (HELO mail-pz0-f188.google.com) (209.85.222.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 11:18:30 +0000 Received: by pzk26 with SMTP id 26so481773pzk.29 for ; Tue, 23 Feb 2010 03:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=XZdRcWX/SIYUjff3vRaysurFFY29NrHyKwtgwn2FOUw=; b=trh/cL1LndVW9Pmzuc6y19aMJSJGCyr6oJxn20yE8hSJ9NqAKtrXEW3L9mMz+I3DQY p1c7U2h7sEK8h2nkKF8XrML0wa6ccpnjfvxa+VffqGdVKr4s9hjRP2Fv2QJFCmS0T4Pq eJzzBv2idZR2kUKP5Z92GuroPoO3Q0MlNgGi8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=DBQjgYdCSe4KZYS38YBGee5pVAkFTEfoLKP05w0gIzPDhNsAw/pnanrwUTAYJmzcy5 WcIMHgki6w4OYM6VPM1wj5NIOAESxGXiwEMJZtyWr/mRVL9j88ttGocaRExYlR/bNdTW 0m2H3Y3q+qidCyvbp6HacIkNam5A+t3ENg2AA= Received: by 10.114.68.17 with SMTP id q17mr10017489waa.147.1266923889560; Tue, 23 Feb 2010 03:18:09 -0800 (PST) Received: from ?10.1.1.3? (124-171-30-226.dyn.iinet.net.au [124.171.30.226]) by mx.google.com with ESMTPS id 20sm629799pzk.11.2010.02.23.03.18.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Feb 2010 03:18:07 -0800 (PST) Message-ID: <4B83B96C.1070203@gmail.com> Date: Tue, 23 Feb 2010 22:18:04 +1100 From: Bob Schellink User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: dev@click.apache.org Subject: Re: DataProvider interface References: <4B7F559E.5080901@gmail.com> <525d8e11002211451xd3ccd52mac5f36ec70561c5a@mail.gmail.com> <525d8e11002230229w35252389j5ec728c868616f99@mail.gmail.com> <4B83B716.6040901@gmail.com> In-Reply-To: <4B83B716.6040901@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 23/02/2010 10:08 PM, Bob Schellink wrote: > > Haven't thought this through but we could have the following interface: > > public DataProvider { > > public List getData(int start, int count); Scratch that. Returning a list won't work, since the implementation would have to create a large enough List to fit the range between start and count. Ideally I'd like the DataProvider to solve pagination as well especially for JDBC and Lucene record sets. bob