hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Holstad <erikhols...@gmail.com>
Subject Re: About the table on time dimension.
Date Sat, 23 May 2009 16:34:01 GMT
Hi Edward!
Like Ryan said I think you are a little bit confused about where the
"versions" attribute applies.
It is a per family setting which means that for every family for every table
you can keep a different number
of versions. And when you scan you get that for every row

When you use the scan command in the shell you might get some results that
looks a little bit weird if you don't know what
you are looking at.

create 't1', {NAME => 'f1', VERSIONS => 1}
put 't1', 'r1', 'f1:qf1' ,'value1', 1
put 't1', 'r1', 'f1:qf1' ,'value2', 2
get 't1', 'r1', {COLUMN => 'f1:qf1'}
You should get something like:
timestamp=2, value=value2

Hope that it clears some stuff up for you.


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