hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heng Chen <heng.chen.1...@gmail.com>
Subject Re: Row Versions in Apache Hbase
Date Tue, 01 Dec 2015 08:29:07 GMT
Yeah,  if you want to get all records about 1212,  just scan rows with
prefix 1212

2015-12-01 16:27 GMT+08:00 Rajeshkumar J <rajeshkumarit8292@gmail.com>:

> so you want me to design row-key value by appending name column value to
> the rowkey
>
> On Tue, Dec 1, 2015 at 1:19 PM, Heng Chen <heng.chen.1986@gmail.com>
> wrote:
>
> > So, why not
> >
> > 1212-xxx    20
> > 1212-yyy    21
> > 1212-zzz    22
> >
> > 2015-12-01 15:33 GMT+08:00 Rajeshkumar J <rajeshkumarit8292@gmail.com>:
> >
> > > Hi
> > >
> > >   I meant like below is this possible
> > >
> > > Rowkey | column family
> > >
> > >                Name | Age
> > >
> > > 1212     |   xxxx | 20
> > > 1212     |  yyyy | 21
> > > 1212  | zzzz | 22
> > >
> > > On Tue, Dec 1, 2015 at 12:03 PM, Heng Chen <heng.chen.1986@gmail.com>
> > > wrote:
> > >
> > > > why not
> > > >
> > > > 1212 | 10, 11, 12, 13, 14, 15, 16, 27,  28 ?
> > > >
> > > > 2015-12-01 14:29 GMT+08:00 Rajeshkumar J <
> rajeshkumarit8292@gmail.com
> > >:
> > > >
> > > > > Hi Ted,
> > > > >
> > > > >   This is my use case. I have to store values like this is it
> > possible?
> > > > >
> > > > > RowKey | Values
> > > > >
> > > > > 1212   | 10,11,12
> > > > >
> > > > > 1212  | 13, 14, 15
> > > > >
> > > > > 1212  | 16,27,28
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > > > On Mon, Nov 30, 2015 at 10:40 PM, Ted Yu <yuzhihong@gmail.com>
> > wrote:
> > > > >
> > > > > > Have you read http://hbase.apache.org/book.html#rowkey.design
?
> > > > > >
> > > > > > bq. we can store more than one row for a row-key value.
> > > > > >
> > > > > > Can you clarify your intention / use case ? If row key is the
> same,
> > > key
> > > > > > values would be in the same row.
> > > > > >
> > > > > > On Mon, Nov 30, 2015 at 8:30 AM, Rajeshkumar J <
> > > > > > rajeshkumarit8292@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > >   I am new to Apache Hbase and I know that in a table when
we
> try
> > > to
> > > > > > insert
> > > > > > > row key value which is already present either new value
is
> > > discarded
> > > > or
> > > > > > > updated. Also I came across row version through which we
can
> > store
> > > > > > > different versions of row key based on timestamp. Any one
> correct
> > > me
> > > > > if I
> > > > > > > am wrong? Also I need to know is there any way we can store
> more
> > > than
> > > > > one
> > > > > > > row for a row-key value.
> > > > > > >
> > > > > > > Thanks
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message