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 8272A10F07 for ; Tue, 9 Dec 2014 18:24:28 +0000 (UTC) Received: (qmail 6680 invoked by uid 500); 9 Dec 2014 18:24:26 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 6615 invoked by uid 500); 9 Dec 2014 18:24:26 -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 6548 invoked by uid 99); 9 Dec 2014 18:24:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 18:24:25 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,HTML_OBFUSCATE_05_10,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of beeshma48@gmail.com designates 209.85.223.169 as permitted sender) Received: from [209.85.223.169] (HELO mail-ie0-f169.google.com) (209.85.223.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 18:23:58 +0000 Received: by mail-ie0-f169.google.com with SMTP id y20so1078562ier.14 for ; Tue, 09 Dec 2014 10:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PlZ+P3GUJqZe/kpR8F6uq10tt68+Wa8fxRIaPZGMwVk=; b=MctWQv9n+2jkfoyvoSXNo+0/XWeJFemFV8CGDkNfRN1M+p1FHv4/JSYCka8AaKx23h 3K7QjgmZZYMLcgmn55UEJRkUnsyacmLH2Ug+wyz4jHO0niade9VgtpjCE5V11IK8OV70 XfHV5G4QiqS428Sk60zwu/o4YWIq2tuGnWXM0OOGYKG9ITvENaqIf+eVCpWBw1CP/d5R qANLCg3Cy1+YWZqXm7V2wYz1zzROsadN9cAtzZjqyDs8CNxPWe9Cxe1JdytDF2oISUPL fL7uDd9pnb97BYH+TSk1v2ALR9DPbB/UaRdOJzmnkTwvGO4hoxiDucCWkYuPruit6zIS NMRQ== MIME-Version: 1.0 X-Received: by 10.107.133.17 with SMTP id h17mr17515722iod.47.1418149437204; Tue, 09 Dec 2014 10:23:57 -0800 (PST) Received: by 10.107.40.3 with HTTP; Tue, 9 Dec 2014 10:23:57 -0800 (PST) Date: Tue, 9 Dec 2014 10:23:57 -0800 Message-ID: Subject: to get all column qualifiers From: beeshma r To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a113ec270716e9c0509cca531 X-Virus-Checked: Checked by ClamAV on apache.org --001a113ec270716e9c0509cca531 Content-Type: text/plain; charset=UTF-8 Hi i want to get all column qualifiers and corresponding cell values for the Rowkey for example below is table structure hbase(main):002:0> scan "people" ROW COLUMN+CELL anandh@hotmail.com column=colmn_fam:anandh@hotmail.com, timestamp=14160315498 33, value=1 beeshma@gmail.com column=colmn_fam:beeshma@gmail.com, timestamp=141590081652 2, value=\x00\x00\x00\x01 ed@gmail.com column=colmn_fam:ed@gmail.com, timestamp=1415900817028, va lue=\x00\x00\x00\x01 gardon@gmail.com column=colmn_fam:gardon@gmail.com, timestamp=1416031549845 , value=1 james@gmail.com column=colmn_fam:james@gmail.com, timestamp=1415900817017, value=\x00\x00\x00\x01 kaleesan@gmail.com column=colmn_fam:kaleesan@gmail.com, timestamp=14160315498 40, value=1 krish@gmail.com column=colmn_fam:krish@gmail.com, timestamp=1416148432981, value=1 pele@gmail.com column=colmn_fam:pele@gmail.com, timestamp=1416031549850, value=1 ran@gmail.com column=colmn_fam:ran@gmail.com, timestamp=1416722434614, v alue=1 yale@gmail.com column=colmn_fam:yale@gmail.com, timestamp=1415900817022, value=\x00\x00\x00\x01 yun@gmail.com column=colmn_fam:yun@gmail.com, timestamp=1415900817035, v alue=\x00\x00\x00\x01 for key =>anandh@hotmail.com i have to get all columnqualifiers in "colmn_fam" column family so what is the way to get that?i tried below samples but i didnt get what i expect..please suggest the best way to get that here i tried some methods Get get_colums=new Get(ROWKEY); Result result_of_coumns=testTable.get(get_colums); Map family=result_of_coumns.getFamilyMap(colmnfamily); for (Map.Entry entry:family.entrySet()) { System.out.println(entry.getKey()); System.out.println(entry.getValue()); } O/P [B@35e023f0 [B@e577d32 LiST METHOD List mail_list = new ArrayList(); Result result_of_coumns=testTable.get(get_colums); for(Byte kv:result_of_coumns.getRow()) { System.out.println(kv.toString()); mail_list.add(kv.toString()); } for(String temp:mail_list) { System.out.println(temp.toString()); } O/P 97 121 121 111 64 103 109 97 105 108 46 99 111 109 Thanks Beesh --001a113ec270716e9c0509cca531--