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 B95561016A for ; Thu, 7 Nov 2013 11:56:20 +0000 (UTC) Received: (qmail 94637 invoked by uid 500); 7 Nov 2013 11:56:15 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 94544 invoked by uid 500); 7 Nov 2013 11:56:08 -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 94527 invoked by uid 99); 7 Nov 2013 11:56:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Nov 2013 11:56:03 +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: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.220.174] (HELO mail-vc0-f174.google.com) (209.85.220.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Nov 2013 11:55:57 +0000 Received: by mail-vc0-f174.google.com with SMTP id ld13so281170vcb.19 for ; Thu, 07 Nov 2013 03:55:36 -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=j03Gb9ZUetYgrkDcOf/kyN7jGK+M2YiaVOThsTAWs2k=; b=Jh0++79fbfC1Ta719vTp/8kcVK3HJH3w+ZscFQIFVreWeQIgicfB8IZzcIGgfBUbHu JXwxtOG1ybxo6z6Gxvfrt6piMyKJSJOf+wGZcUlCxYf8hZkUdEKRNV8WpQNbnDNsxaov 9I1mBrEjh2gVoiIoo65w5ED/7k3k3A0rABGRljhrJ302vgn+APWLSvm+dXVcf2+AqmLD PeeQrz7nP1b+/rKMIhALGQYCB1mRcCBrYjrQFuKIL6FmZonJ+DPtllcIvOwI8m5/l4+T Nclw6GcQ2gv2J/4mpHWexWcSwyOl5ugqJzIWIFcETN+6QJmlbwURz3ktKK+nHkUI97dm cpQQ== X-Gm-Message-State: ALoCoQm4fmvbwv7FonczzdN1WOOOATDJnQFuoK9vdNdBVpxM5UVsM6wqGwzm8M/pKvpSxSVNf6WX X-Received: by 10.58.210.66 with SMTP id ms2mr6491365vec.10.1383825336219; Thu, 07 Nov 2013 03:55:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.175.202 with HTTP; Thu, 7 Nov 2013 03:55:16 -0800 (PST) In-Reply-To: <20131107072725.GA27036@archbookPro> References: <20131107072725.GA27036@archbookPro> From: Jean-Marc Spaggiari Date: Thu, 7 Nov 2013 06:55:16 -0500 Message-ID: Subject: Re: Combining filters in the HBase shell To: user Content-Type: multipart/alternative; boundary=047d7bd6ae8c9905c204ea94f14b X-Virus-Checked: Checked by ClamAV on apache.org --047d7bd6ae8c9905c204ea94f14b Content-Type: text/plain; charset=UTF-8 Hi Arvid, Based on the shell help: hbase> scan 't1', {FILTER => "(PrefixFilter ('row2') AND (QualifierFilter (>=, 'binary:xyz'))) AND (TimestampsFilter ( 123, 456))"} Can you try without the ".new" when using multiple filters? Other option, can you try to define you filters first and then reference them on your scan? JM 2013/11/7 Arvid Warnecke > Hello, > > I have some issues when I try to use filters in the shell. > When I use only one filter everything is okay: > > scan 'rawdb', { COLUMNS => 'raw:a', FILTER => \ > SingleColumnValueFilter.new(Bytes.toBytes('raw'), Bytes.toBytes('a'), \ > CompareFilter::CompareOp.valueOf('EQUAL'), > SubstringComparator.new('154442')), \ > LIMIT => 3 } > > But when I try to combine two filters like that: > > scan 'rawdb', { COLUMNS => 'raw:a', FILTER => > "(SingleColumnValueFilter.new(Bytes.toBytes('raw'), Bytes.toBytes('a'), \ > CompareFilter::CompareOp.valueOf('EQUAL'), > SubstringComparator.new('154442')) \ > AND (SingleColumnValueFilter.new(Bytes.toBytes('raw'), Bytes.toBytes('u'), > \ > CompareFilter::CompareOp.valueOf('EQUAL'), > SubstringComparator.new('blafasel')))", \ > LIMIT => 3 } > > I get the following error: > java.lang.IllegalArgumentException: Filter Name > SingleColumnValueFilter.new not supported > > Can somebody tell me what I am doing wrong here? > > Best regards, > Arvid > > -- > ThreePiO was right: Let the Wookiee win. > --047d7bd6ae8c9905c204ea94f14b--