Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 35488 invoked from network); 20 Jan 2011 06:47:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2011 06:47:09 -0000 Received: (qmail 17319 invoked by uid 500); 20 Jan 2011 06:47:09 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 17223 invoked by uid 500); 20 Jan 2011 06:47:07 -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 17210 invoked by uid 99); 20 Jan 2011 06:47:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 06:47:07 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 06:47:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0K6kisa014911 for ; Thu, 20 Jan 2011 06:46:44 GMT Message-ID: <4838568.76101295506004023.JavaMail.jira@thor> Date: Thu, 20 Jan 2011 01:46:44 -0500 (EST) From: "ncanis (JIRA)" To: issues@hbase.apache.org Subject: [jira] Updated: (HBASE-3453) How about RowPaginationFilter In-Reply-To: <30316245.74691295496703543.JavaMail.jira@thor> 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-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ncanis updated HBASE-3453: -------------------------- Attachment: RowPaginationFilter.java I converted RowPaginationFilter.java to hbase 0.90.0 Congratulations on HBase 0.90.0 release! I am really happy about that. :) > How about RowPaginationFilter > ----------------------------- > > Key: HBASE-3453 > URL: https://issues.apache.org/jira/browse/HBASE-3453 > Project: HBase > Issue Type: Wish > Components: client > Affects Versions: 0.90.1 > Environment: windows 7 > Reporter: ncanis > Fix For: 0.90.0 > > Attachments: RowPaginationFilter.java > > > I know hbase has already PageFilter. > But, sometime we need to get row data from specified position. > * only for newbie: > If you want to write custom Filter, you also add filter class to an hbase server classpath. > {code:title=RowPaginationFilter|borderStyle=solid} > /** > * Constructor that takes a maximum page size. > * > * get row from offset to offset+limit ( offset<= row<=offset+limit ) > * @param offset start position > * @param limit count from offset position > */ > public RowPaginationFilter(final int offset, final int limit) { > this.offset = offset; > this.limit = limit; > } > //true to exclude row, false to include row. > @Override > public boolean filterRow() { > > boolean isExclude = this.rowsAccepted < this.offset || this.rowsAccepted>=this.limit+this.offset; > rowsAccepted++; > return isExclude; > } > {code} > ----------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.