On Thu, Dec 19, 2013 at 9:05 AM, james isaac <[email protected]> wrote:

> Could there be a problem with me using a LongColumnInterpreter when the
> 'count' field was an int? What am I missing in here?
>

An "int" is serialized as 4 bytes, a "long" as 8 bytes...

The size of the value is checked and expected to be 8 bytes (a long) by the
LongColumnInterpreter, otherwise null is returned
https://github.com/apache/hbase/blob/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/LongColumnInterpreter.java#L44

(the blog post mentions that only long are supported: "Note that this
version is designed to work on data whose type is Long. If you plan to use
other data types you should provide your own column interpreter")

Reply via email to