Thanks Ted for the quick response. Looked at the code in "master" branch and seems to have the return type as HTableDescriptor. Probably I am looking at the wrong branch?
https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java#L200 https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Table.java#L69 On Mon, Jun 19, 2017 at 11:33 PM, Ted Yu <[email protected]> wrote: > I guess in branch-2, this is to keep backward compatibility. > > In master branch, TableDescriptor should be returned from these two > methods. > > On Mon, Jun 19, 2017 at 8:27 PM, Biju N <[email protected]> wrote: > > > Hi There, > > From the docs. HTableDescriptor is deprecated and will be removed from > > 3.0. But both client.Table#getTableDescriptor and > > client.Admin#getTableDescriptor returns HTableDescriptor object. Is > there > > a > > reason why these methods return the deprecated type? Looking to change > code > > from prior versions to not use the deprecated classes. > > > > Thanks, > > Biju > > >
