-Re: Hbase filter with column and value.
shashwat shriparv 2012-04-26, 20:41
Hey Davis You can try this Get a full row using row key which you can get
using creating a scanner like follow :
Scan sc=new scan();
Resultscanner rss= hTable.getscanner(sc);
then using this rowkey you can create a Get as
Get g=new get(rowkey);
Get all columns from the specified family.
Hope you know the column family already right? that is fixed right?
or else you can try :
Scan s =new scan();
Filter f = new ColumnRangeFilter(Bytes.toBytes(" foo_1 "), true,
Bytes.toBytes(" foo_n"), false);
ResultScanner rs = t.getScanner(s);
this you can use as result. will give you the columns.
also you can give a try to
and also :
The only way to get a complete set of columns that exist for a ColumnFamily
is to process all the rows. For more information about how HBase stores
data internally, seeSection 22.214.171.124,
Hope some how it will help you..
On Thu, Apr 26, 2012 at 11:26 PM, Davis <[EMAIL PROTECTED]> wrote:
> Hi Jieshan
> Thanks a lot for the reply.
> BUT in this case i don't have the column name since im using
> Is there a way get the result without adding the particular column and
> family name to scanner object??