Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F0C710DBE for ; Tue, 31 Dec 2013 01:29:46 +0000 (UTC) Received: (qmail 91898 invoked by uid 500); 31 Dec 2013 01:29:44 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 91832 invoked by uid 500); 31 Dec 2013 01:29:44 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 91824 invoked by uid 99); 31 Dec 2013 01:29:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Dec 2013 01:29:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.215.41 as permitted sender) Received: from [209.85.215.41] (HELO mail-la0-f41.google.com) (209.85.215.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Dec 2013 01:29:37 +0000 Received: by mail-la0-f41.google.com with SMTP id c6so778447lan.28 for ; Mon, 30 Dec 2013 17:29:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CO+ZSZ4XyHaNrpQ9EoWgcPqUOO9YgEEQ/S+PCpt55a4=; b=DHQdQFpdXFmuO5iQjnDvBYSG3WplKufxShBWiaalNBNofEeoU6OYQ9FCEeSU0PAPBZ SOpmFQTRXaXNI3fxHpOE4ngEjsoG9xj3abiVBVDJaCRSzXfAPVQ45cVGcEOplf4WOT5q bUk0iqKlHi4+6zQREiyaLzgeAlV+RL8GAY1THynktEtyOlRy5FCw/vBSuqCESpQvUEn4 uK12lNTgDlVREvn/Aawtgyt1tRCbj9vBkL96sULD88zlgILKc4o8gdFWXC0C0jfOHRbB urJAyDezZ9V77SWRpxUBw/ALNFJ4UB3w4M4OOgxQmxaKk1ZZAd+4JCYePoiYbnvWFftQ YVuA== MIME-Version: 1.0 X-Received: by 10.152.21.74 with SMTP id t10mr1178438lae.65.1388453357280; Mon, 30 Dec 2013 17:29:17 -0800 (PST) Received: by 10.112.138.234 with HTTP; Mon, 30 Dec 2013 17:29:17 -0800 (PST) In-Reply-To: <1388452716.76686.YahooMailNeo@web140902.mail.bf1.yahoo.com> References: <1388452716.76686.YahooMailNeo@web140902.mail.bf1.yahoo.com> Date: Mon, 30 Dec 2013 17:29:17 -0800 Message-ID: Subject: Re: How to delete multiple columns in the same row? From: Ted Yu To: "user@hbase.apache.org" , "S. Zhou" Content-Type: multipart/alternative; boundary=089e0149416425e0fb04eeca7d67 X-Virus-Checked: Checked by ClamAV on apache.org --089e0149416425e0fb04eeca7d67 Content-Type: text/plain; charset=ISO-8859-1 Option #1 should do - one Delete for each row. Take a look at: hbase-server/src/test//java/org/apache/hadoop/hbase/rest/TestScannersWithFilters.java Cheers On Mon, Dec 30, 2013 at 5:18 PM, S. Zhou wrote: > I try to delete multiple columns for the same row in HBase. I checked the > API for the "Delete" class, method "deleteColumns", and have some > confusion. Basically, I am not sure: if I should call "deleteColumns" on > the same "Delete" object multiple times (to delete multiple columns), or > create multiple "Delete" objects and each such object is for one column > deletion. > > Thanks > Senqiang > --089e0149416425e0fb04eeca7d67--