Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 932E4EAA9 for ; Sat, 2 Feb 2013 04:48:14 +0000 (UTC) Received: (qmail 23816 invoked by uid 500); 2 Feb 2013 04:48:14 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 23762 invoked by uid 500); 2 Feb 2013 04:48:14 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 23728 invoked by uid 99); 2 Feb 2013 04:48:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2013 04:48:13 +0000 Date: Sat, 2 Feb 2013 04:48:13 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-5664) CP hooks in Scan flow for fast forward when filter filters out a row 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/HBASE-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Hofhansl updated HBASE-5664: --------------------------------- Resolution: Fixed Hadoop Flags: Reviewed Status: Resolved (was: Patch Available) Thanks for patience Anoop :) > CP hooks in Scan flow for fast forward when filter filters out a row > -------------------------------------------------------------------- > > Key: HBASE-5664 > URL: https://issues.apache.org/jira/browse/HBASE-5664 > Project: HBase > Issue Type: Improvement > Components: Coprocessors, Filters > Affects Versions: 0.92.1 > Reporter: Anoop Sam John > Assignee: Anoop Sam John > Fix For: 0.96.0, 0.94.5 > > Attachments: HBASE-5664_94.patch, HBASE-5664_94_V2.patch, HBASE-5664_94_V3.patch, HBASE-5664_Trunk.patch, HBASE-5664_Trunk_V2.patch > > > In HRegion.nextInternal(int limit, String metric) > We have while(true) loop so as to fetch a next result which satisfies filter condition. When Filter filters out the current fetched row we call nextRow(byte [] currentRow) before going with the next row. > {code} > if (results.isEmpty() || filterRow()) { > // this seems like a redundant step - we already consumed the row > // there're no left overs. > // the reasons for calling this method are: > // 1. reset the filters. > // 2. provide a hook to fast forward the row (used by subclasses) > nextRow(currentRow); > {code} > // 2. provide a hook to fast forward the row (used by subclasses) > We can provide same feature of fast forward support for the CP also. -- 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