hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Biju N <bijuatapa...@gmail.com>
Subject Re: HTableDescriptor
Date Tue, 20 Jun 2017 03:44:57 GMT
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 <yuzhihong@gmail.com> 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 <bijuatapache@gmail.com> 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
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message