|
|
-
Retrieving by Counters and ValueFilter
Bing Li 2012-02-24, 21:59
Dear all,
HBase has the feature to treat columns as counters. So I attempted to retrieve data based on the value of counters. Usually, the counters are the long type.
But the filters' constructors, such as ValueFilter, in HBase does not have the parameter of long type. If so, may I still retrieve by ValueFilter and counters?
Thanks so much!
Best regards, Bing
-
Re: Retrieving by Counters and ValueFilter
Jean-Daniel Cryans 2012-02-24, 22:38
Use BinaryComparator in ValueFilter's constructor and provide the value you're looking for as a byte[].
J-D
On Fri, Feb 24, 2012 at 1:59 PM, Bing Li <[EMAIL PROTECTED]> wrote: > Dear all, > > HBase has the feature to treat columns as counters. So I attempted to > retrieve data based on the value of counters. Usually, the counters are the > long type. > > But the filters' constructors, such as ValueFilter, in HBase does not have > the parameter of long type. If so, may I still retrieve by ValueFilter and > counters? > > Thanks so much! > > Best regards, > Bing
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext