Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 85223 invoked from network); 12 Aug 2009 17:25:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 17:25:32 -0000 Received: (qmail 23262 invoked by uid 500); 12 Aug 2009 17:25:39 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 23227 invoked by uid 500); 12 Aug 2009 17:25:39 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 23217 invoked by uid 99); 12 Aug 2009 17:25:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 17:25:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 17:25:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C9B7E234C004 for ; Wed, 12 Aug 2009 10:25:14 -0700 (PDT) Message-ID: <210476758.1250097914813.JavaMail.jira@brutus> Date: Wed, 12 Aug 2009 10:25:14 -0700 (PDT) From: "Ken Weiner (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-1759) Ability to specify scanner caching on a per-scan basis In-Reply-To: <496882090.1250014215248.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ken Weiner updated HBASE-1759: ------------------------------ Attachment: HBASE-1759-v2.patch New patch submitted with less wordy javadoc comments for Scan and a little more wordy javadocs comments for setCaching method as suggested by Jonathan. > Ability to specify scanner caching on a per-scan basis > ------------------------------------------------------ > > Key: HBASE-1759 > URL: https://issues.apache.org/jira/browse/HBASE-1759 > Project: Hadoop HBase > Issue Type: Improvement > Components: client > Affects Versions: 0.20.0 > Reporter: Ken Weiner > Attachments: HBASE-1759-v2.patch, HBASE-1759.patch > > > I think that clients should have the ability to configure the scanner caching setting on a per-scan basis via the org.apache.hadoop.hbase.client.Scan object. I propose adding a new caching property to the Scan class which would override the HTable.scannerCaching property if set. This would turn the HTable.scannerCaching property into more of a default setting. > The code inside ClientScanner (an inner-class implementation of ResultScanner) would look like this: > {code} > // Use the caching from the Scan. If not set, use the default cache setting for this table. > if (this.scan.getCaching() > 0) { > this.caching = this.scan.getCaching(); > } else { > this.caching = HTable.this.scannerCaching; > } > {code} > Note that currently the only option for per-scan scanner caching configuration is to modify the state of HTable for each Scan. This could lead to confusion when HTables are pooled since the pool would potentially end up with many HTables all configured differently. > I will attach a patch. I'm looking forward to hearing your comments. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.