Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 038A0200B59 for ; Mon, 8 Aug 2016 16:18:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 02423160AB4; Mon, 8 Aug 2016 14:18:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4E4A2160A77 for ; Mon, 8 Aug 2016 16:18:23 +0200 (CEST) Received: (qmail 67276 invoked by uid 500); 8 Aug 2016 14:18:20 -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 67022 invoked by uid 99); 8 Aug 2016 14:18:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 14:18:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A586A2C0D61 for ; Mon, 8 Aug 2016 14:18:20 +0000 (UTC) Date: Mon, 8 Aug 2016 14:18:20 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16299) Update REST API scanner with ability to do reverse scan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 08 Aug 2016 14:18:24 -0000 [ https://issues.apache.org/jira/browse/HBASE-16299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15411860#comment-15411860 ] Hudson commented on HBASE-16299: -------------------------------- FAILURE: Integrated in HBase-1.4 #337 (See [https://builds.apache.org/job/HBase-1.4/337/]) HBASE-16299 Update REST API scanner with ability to do reverse scan (ramkrishna: rev 65784814476ecdc0c2f86c6e346a5799bdb392b0) * hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/Constants.java * hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/TableResource.java * hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestTableScan.java > Update REST API scanner with ability to do reverse scan > ------------------------------------------------------- > > Key: HBASE-16299 > URL: https://issues.apache.org/jira/browse/HBASE-16299 > Project: HBase > Issue Type: Improvement > Components: REST > Affects Versions: 1.1.2 > Environment: Not environment specific (tested on HDP 2.4.2) > Reporter: Bjorn Olsen > Assignee: Minwoo Kang > Priority: Minor > Fix For: 2.0.0, 1.4.0 > > Attachments: HBASE-16299.branch-1.3.001.patch, HBASE-16299.master.001.patch > > > HBASE-4811 "Support reverse scan" was implemented from version 0.98.0, and is available in the Java API. > However this functionality is not yet exposed via REST. > Example of expected API call: > http://server:port/table/*?startrow=1&endrow=10&reversed=true" > (Returns rows ordered by key in reverse, eg from 9*** to 1*** ) > Based on my (limited) understanding this should be simple to add. > See org.apach.hadoop.hbase.rest.TableResource.getScanResource > This function creates a Scan object with parameters passed in from the REST API (I assume). > Adding this functionality may be as simple as adding a "reversed" parameter to the REST API which passes down to where the Scan object is created in TableResource.getScanResource. -- This message was sent by Atlassian JIRA (v6.3.4#6332)