phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Dimiduk <>
Subject Re: how to parse an integer from HBase which is upserted through Phoenix
Date Wed, 25 Mar 2015 16:48:46 GMT
This is not a simple task today, although much of the plumbing is there. On
the rendering side, HBase shell has the concept of a formatter for
rendering data. This combined with the DataType API should allow you to
wire in appropriate rendering. On the write side, I don't think the shell
has a way to override the serialization used for creating byte[]'s. I don't
know off the top of my head how you would insert Phoenix's DataTypes into
that code path.

Maybe you can give the rendering it a spin and let us know how it goes?


On Wed, Mar 25, 2015 at 12:55 AM, donhoff_h <> wrote:

> Hi, Experts
> I found that the integer value upserted through Phoenix is different from
> HBase. The sign bit is flipped. Is there any Utility Classes provided by
> Phoenix that can make conversions easily?
> For example, I upsert an integer through Phoenix, and I want to use this
> utiliy class to read it through HBase's command scan correctly, and vice
> versa.
> Many Thanks!

View raw message