I'll add this to the book. This comes up from time to time.
On 2/13/12 11:04 AM, "Stack" <[email protected]> wrote: >On Mon, Feb 13, 2012 at 1:25 AM, hongqizh <[email protected]> wrote: >> Hello, >> >> I want to retrieve the structure of a table, and now I know how to get >>the >> column families of a table, >>HTable->HTableDescriptor->HColumnDescriptor, but >> I was blocked when I trying to find the API to get the columns of a >>column >> family. Anyone knows about this API? >> >> Thanks a lot for your help! >> > >Its not possible without getting all data in all columns; no two rows >necessarily have the same columns. But perhaps there was some >discipline in place inserting data in your case and retrieving all >data on a particular row will tell you the columns used on all rows? > >St.Ack >
