You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by "Dai, Kevin" <yu...@ebay.com> on 2014/09/19 04:33:58 UTC

How to let hbase just return value or subset of the value

Hi,

The value of my table is a Map.

I want to know how can I get only value(no any key sent from the region server) or get a subset of the value(Map) from hbase.

BR,
Kevin.

Re: How to let hbase just return value or subset of the value

Posted by Ted Yu <yu...@gmail.com>.
You're looking for counterpart to KeyValue#createKeyOnly().

To my knowledge there is no such method.

Cheers

On Thu, Sep 18, 2014 at 7:57 PM, Dai, Kevin <yu...@ebay.com> wrote:

> Hi, Ted
>
> Thanks for your suggestion. But I want to know whether hbase can return
> the Map to me directly instead of cell.
>
> BR,
> Kevin.
>
> -----Original Message-----
> From: Ted Yu [mailto:yuzhihong@gmail.com]
> Sent: 2014年9月19日 10:44
> To: user@hbase.apache.org
> Subject: Re: How to let hbase just return value or subset of the value
>
> You can utilize Filter#transformCell(Cell)
>
> Cheers
>
> On Thu, Sep 18, 2014 at 7:33 PM, Dai, Kevin <yu...@ebay.com> wrote:
>
> > Hi,
> >
> > The value of my table is a Map.
> >
> > I want to know how can I get only value(no any key sent from the region
> > server) or get a subset of the value(Map) from hbase.
> >
> > BR,
> > Kevin.
> >
>

RE: How to let hbase just return value or subset of the value

Posted by "Dai, Kevin" <yu...@ebay.com>.
Hi, Ted

Thanks for your suggestion. But I want to know whether hbase can return the Map to me directly instead of cell.

BR,
Kevin.

-----Original Message-----
From: Ted Yu [mailto:yuzhihong@gmail.com] 
Sent: 2014年9月19日 10:44
To: user@hbase.apache.org
Subject: Re: How to let hbase just return value or subset of the value

You can utilize Filter#transformCell(Cell)

Cheers

On Thu, Sep 18, 2014 at 7:33 PM, Dai, Kevin <yu...@ebay.com> wrote:

> Hi,
>
> The value of my table is a Map.
>
> I want to know how can I get only value(no any key sent from the region
> server) or get a subset of the value(Map) from hbase.
>
> BR,
> Kevin.
>

Re: How to let hbase just return value or subset of the value

Posted by Ted Yu <yu...@gmail.com>.
You can utilize Filter#transformCell(Cell)

Cheers

On Thu, Sep 18, 2014 at 7:33 PM, Dai, Kevin <yu...@ebay.com> wrote:

> Hi,
>
> The value of my table is a Map.
>
> I want to know how can I get only value(no any key sent from the region
> server) or get a subset of the value(Map) from hbase.
>
> BR,
> Kevin.
>