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 8EDD110B92 for ; Tue, 25 Nov 2014 02:07:54 +0000 (UTC) Received: (qmail 59779 invoked by uid 500); 25 Nov 2014 02:07:52 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 59706 invoked by uid 500); 25 Nov 2014 02:07:52 -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 59691 invoked by uid 99); 25 Nov 2014 02:07:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 02:07:52 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_IMAGE_ONLY_20,HTML_MESSAGE,HTML_SHORT_LINK_IMG_3,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bharathv@cloudera.com designates 209.85.218.42 as permitted sender) Received: from [209.85.218.42] (HELO mail-oi0-f42.google.com) (209.85.218.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 02:07:27 +0000 Received: by mail-oi0-f42.google.com with SMTP id v63so7594730oia.29 for ; Mon, 24 Nov 2014 18:06:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=XUMW9ELUGQ+giaZDh7YWcBoInoSESl8FOchFTQOEAhQ=; b=RQrTduAagi6yciFo2+DiBjASxMHXruVne8vyWqqP+7HcPBmSat+/9gYfv1cFIMmCht j/eR/6LF5uerBJGtYzH76wtoKRIshMsEVCv+dgMugu7VYGdOeR77WTCdVlzsIC25QtIf hk7mH+jwoAsQtJx/w15FItlOnCMEseYg1na3XtfP+rxpKVAg6tJp7ouZWkJyKUMsPrHv AV7W2q3oNKHRAPWs73ja9xSKb+lbgtrKofCHI0Em89+E7ppPfdTKlJrf8nnb+vh+u23C l+YDTRvmQe64LA2Wv/cZKA7OCopssazZwPzLtB4702S3Zk/lBWv6r0r/Clium7slXxIs a2NA== X-Gm-Message-State: ALoCoQl9ZV9VcCKBMWPJYSY9YUWqXvOMoBl/b+hKnhGmLS4/nk5kHNN2GLwpNPRDimMcKyLTaMj+ X-Received: by 10.60.98.33 with SMTP id ef1mr13557882oeb.62.1416881200714; Mon, 24 Nov 2014 18:06:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.101.71 with HTTP; Mon, 24 Nov 2014 18:06:19 -0800 (PST) In-Reply-To: References: From: Bharath Vissapragada Date: Tue, 25 Nov 2014 07:36:19 +0530 Message-ID: Subject: Re: Can I use the Thrift API to scan with filters? To: hbase-user Content-Type: multipart/alternative; boundary=089e0115edcaa86b5c0508a55c40 X-Virus-Checked: Checked by ClamAV on apache.org --089e0115edcaa86b5c0508a55c40 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes, you can. Did you try the scannerOpenWithScan() call? It takes a TScan as input and you can build it with a filterString. Closest examples I could find are [1] and [2] but I believe its not difficult to extend these. [1] https://github.com/apache/hbase/blob/master/hbase-thrift/src/test/java/org/= apache/hadoop/hbase/thrift/TestThriftServer.java#L540 [2] https://github.com/apache/hbase/blob/master/hbase-examples/src/main/java/or= g/apache/hadoop/hbase/thrift/DemoClient.java#L64 On Tue, Nov 25, 2014 at 6:49 AM, N=C3=A9stor Bosc=C3=A1n wrote: > Hi > > I've been searching for Thrift Java API examples with filters but can't > find any. Does the current Thrift API supports it? > > Regards, > > N=C3=A9stor > --=20 Bharath Vissapragada --089e0115edcaa86b5c0508a55c40--