hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 梁景明 <futur...@gmail.com>
Subject asked for some examples for pagefilter,and array design
Date Mon, 06 Dec 2010 10:17:56 GMT
hi, is there any examples for pagefilter?
here is my app case.
person A and his friends

id         column      value
A         firend:B      B
A         firend:C      C
A         firend:D      D
A         firend:Z      Z

and i want to get A's friends from D to G

as index from 2 to 5

5-2=3 so i think maybe set new PageFilter(3) ,but all results are output
        Get get = new Get("A".getBytes());
        get.setFilter(new PageFilter(3));
        Result r = table.get(get);
       List <KeyValue> list=r.list();
        for(KeyValue kv:list){
how to use it ?

and more question ,some function what i need is some array use case.

previous,next,get(index), data(from x to y) ,size

is there any new design for array in hbase?

as desgin
A         firend:B      B

i get size from Result.list().size(), but if there is a bigtable ,i double
it done well in memory?

i scan the record current , mark the previous as result , when get current
break,and get  previous one . but it's a bad idea which record is last one.

i scan the record current , when get current, mark the next as result , and
get  next one . but it's also a bad idea which record is last one.

get(index), data(from x to y)
now  i have no idea? any suggestion?

thanks verymuch.

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