Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18501 Use TableDescriptor and ColumnFamilyDescriptor as far as possible
  3. HBASE-18241

Change client.Table, client.Admin, Region, Store, and HBaseTestingUtility to not use HTableDescriptor or HColumnDescriptor

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.0-alpha-2, 2.0.0
    • Client
    • None
    • Incompatible change, Reviewed
    • Hide
      - : removed API
      + : new API
      * : deprecated API
      ---------------------------
      Region class
      - HTableDescriptor getTableDesc()
      +TableDescriptor getTableDescriptor()

      Store class
      - HColumnDescriptor getFamily()
      + ColumnFamilyDescriptor getColumnFamilyDescriptor()

      Table class
      * HTableDescriptor getTableDescriptor()
      + TableDescriptor getDescriptor()|

      *Admin class*
      * HTableDescriptor getTableDescriptor(TableName)
      + List<TableDescriptor> listTableDescriptor(TableName)|
      * HTableDescriptor[] getTableDescriptors(List<String>)
      * HTableDescriptor[] getTableDescriptorsByTableName(List<TableName>)
      + List<TableDescriptor> listTableDescriptors(List<TableName>)
      * HTableDescriptor[] listTables()
      + List<TableDescriptor> listTableDescriptors()
      * HTableDescriptor[] listTables(Pattern)
      + List<TableDescriptor> listTableDescriptors(Pattern)
      * HTableDescriptor[] listTables(String)
      + List<TableDescriptor> listTableDescriptors(String)
      * HTableDescriptor[] listTables(Pattern, boolean)
      + List<TableDescriptor> listTableDescriptors(Pattern, boolean)
      * HTableDescriptor[] listTables(String, boolean)
      + List<TableDescriptor> listTableDescriptors(String, boolean)
      * HTableDescriptor[] deleteTables(String)
      * HTableDescriptor[] deleteTables(Pattern)
      * HTableDescriptor[] enableTables(String)
      * HTableDescriptor[] enableTables(Pattern)
      * HTableDescriptor[] disableTables(String)
      * HTableDescriptor[] disableTables(Pattern)
      * void modifyTable(TableName, HTableDescriptor)
      + void modifyTable(TableDescriptor)
      * void modifyTableAsync(TableName, HTableDescriptor)
      + void modifyTableAsync(TableDescriptor)
      * HTableDescriptor[] listTableDescriptorsByNamespace(String)
      + List<TableDescriptor> listTableDescriptorsByNamespace(byte[])
      * void createTable(HTableDescriptor)
      + void createTable(TableDescriptor)
      * void createTable(HTableDescriptor, byte[], byte[], int)
      + void createTable({color:red}TableDescriptor, byte[], byte[], int)
      * void createTable(HTableDescriptor, byte[][])
      + void createTable(TableDescriptor, byte[][])
      * Future<Void> createTableAsync(HTableDescriptor, byte[][])
      + Future<Void> createTableAsync(TableDescriptor, byte[][])

      *HBaseTestingUtility class*
      * Table createTable(HTableDescriptor, byte[][], Configuration)
      + Table createTable(TableDescriptor, byte[][], Configuration)
      * Table createTable(HTableDescriptor, byte[][], byte[][], Configuration)
      + Table createTable(TableDescriptor, byte[][], byte[][], Configuration)
      * public Table createTable(HTableDescriptor, byte[][])
      + public Table createTable(TableDescriptor, byte[][])
      * void modifyTableSync(Admin, HTableDescriptor)
      + void modifyTableSync(Admin, TableDescriptor)
      * HRegion createLocalHRegion(HTableDescriptor, byte [], byte [])
      + HRegion createLocalHRegion(TableDescriptor, byte [], byte [])
      * HRegion createLocalHRegion(HRegionInf, HTableDescriptor)
      + HRegion createLocalHRegion(HRegionInf, TableDescriptor)
      * HRegion createLocalHRegion(HRegionInfo, HTableDescriptor, WAL)
      + HRegion createLocalHRegion(HRegionInfo, TableDescriptor, WAL)
      * List createMultiRegionsInMeta(final Configuration, HTableDescriptor, byte [][])
      + List createMultiRegionsInMeta(final Configuration, TableDescriptor, byte [][])
      * HRegion createRegionAndWAL(HRegionInfo, Path, Configuration, HTableDescriptor)
      + HRegion createRegionAndWAL(HRegionInfo, Path, Configuration, TableDescriptor)
      * HRegion createRegionAndWAL(HRegionInfo, Pat, Configuration, HTableDescriptor, boolean)
      + HRegion createRegionAndWAL(HRegionInfo, Pat, Configuration, TableDescriptor, boolean)
      * int createPreSplitLoadTestTable(Configuration,HTableDescriptor, HColumnDescriptor)
      + int createPreSplitLoadTestTable(Configuration,TableDescriptor, ColumnFamilyDescriptor)
      * int createPreSplitLoadTestTable(Configuration, HTableDescriptor, HColumnDescriptor, int)
      + int createPreSplitLoadTestTable(Configuration, TableDescriptor, ColumnFamilyDescriptor, int)
      * int createPreSplitLoadTestTable(Configuration, HTableDescriptor, HColumnDescriptor[], int)
      + int createPreSplitLoadTestTable(Configuration, TableDescriptor, ColumnFamilyDescriptor[], int)
      * int createPreSplitLoadTestTable(Configuration,HTableDescriptor, HColumnDescriptor[],SplitAlgorithm, int)
      + int createPreSplitLoadTestTable(Configuration,TableDescriptor, ColumnFamilyDescriptor[],SplitAlgorithm, int)
      * HRegion createTestRegion(String, HColumnDescriptor)
      + HRegion createTestRegion(String, ColumnFamilyDescriptor)
      Show
      - : removed API + : new API * : deprecated API --------------------------- Region class - HTableDescriptor getTableDesc() +TableDescriptor getTableDescriptor() Store class - HColumnDescriptor getFamily() + ColumnFamilyDescriptor getColumnFamilyDescriptor() Table class * HTableDescriptor getTableDescriptor() + TableDescriptor getDescriptor()| *Admin class* * HTableDescriptor getTableDescriptor(TableName) + List<TableDescriptor> listTableDescriptor(TableName)| * HTableDescriptor[] getTableDescriptors(List<String>) * HTableDescriptor[] getTableDescriptorsByTableName(List<TableName>) + List<TableDescriptor> listTableDescriptors(List<TableName>) * HTableDescriptor[] listTables() + List<TableDescriptor> listTableDescriptors() * HTableDescriptor[] listTables(Pattern) + List<TableDescriptor> listTableDescriptors(Pattern) * HTableDescriptor[] listTables(String) + List<TableDescriptor> listTableDescriptors(String) * HTableDescriptor[] listTables(Pattern, boolean) + List<TableDescriptor> listTableDescriptors(Pattern, boolean) * HTableDescriptor[] listTables(String, boolean) + List<TableDescriptor> listTableDescriptors(String, boolean) * HTableDescriptor[] deleteTables(String) * HTableDescriptor[] deleteTables(Pattern) * HTableDescriptor[] enableTables(String) * HTableDescriptor[] enableTables(Pattern) * HTableDescriptor[] disableTables(String) * HTableDescriptor[] disableTables(Pattern) * void modifyTable(TableName, HTableDescriptor) + void modifyTable(TableDescriptor) * void modifyTableAsync(TableName, HTableDescriptor) + void modifyTableAsync(TableDescriptor) * HTableDescriptor[] listTableDescriptorsByNamespace(String) + List<TableDescriptor> listTableDescriptorsByNamespace(byte[]) * void createTable(HTableDescriptor) + void createTable(TableDescriptor) * void createTable(HTableDescriptor, byte[], byte[], int) + void createTable({color:red}TableDescriptor, byte[], byte[], int) * void createTable(HTableDescriptor, byte[][]) + void createTable(TableDescriptor, byte[][]) * Future<Void> createTableAsync(HTableDescriptor, byte[][]) + Future<Void> createTableAsync(TableDescriptor, byte[][]) *HBaseTestingUtility class* * Table createTable(HTableDescriptor, byte[][], Configuration) + Table createTable(TableDescriptor, byte[][], Configuration) * Table createTable(HTableDescriptor, byte[][], byte[][], Configuration) + Table createTable(TableDescriptor, byte[][], byte[][], Configuration) * public Table createTable(HTableDescriptor, byte[][]) + public Table createTable(TableDescriptor, byte[][]) * void modifyTableSync(Admin, HTableDescriptor) + void modifyTableSync(Admin, TableDescriptor) * HRegion createLocalHRegion(HTableDescriptor, byte [], byte []) + HRegion createLocalHRegion(TableDescriptor, byte [], byte []) * HRegion createLocalHRegion(HRegionInf, HTableDescriptor) + HRegion createLocalHRegion(HRegionInf, TableDescriptor) * HRegion createLocalHRegion(HRegionInfo, HTableDescriptor, WAL) + HRegion createLocalHRegion(HRegionInfo, TableDescriptor, WAL) * List createMultiRegionsInMeta(final Configuration, HTableDescriptor, byte [][]) + List createMultiRegionsInMeta(final Configuration, TableDescriptor, byte [][]) * HRegion createRegionAndWAL(HRegionInfo, Path, Configuration, HTableDescriptor) + HRegion createRegionAndWAL(HRegionInfo, Path, Configuration, TableDescriptor) * HRegion createRegionAndWAL(HRegionInfo, Pat, Configuration, HTableDescriptor, boolean) + HRegion createRegionAndWAL(HRegionInfo, Pat, Configuration, TableDescriptor, boolean) * int createPreSplitLoadTestTable(Configuration,HTableDescriptor, HColumnDescriptor) + int createPreSplitLoadTestTable(Configuration,TableDescriptor, ColumnFamilyDescriptor) * int createPreSplitLoadTestTable(Configuration, HTableDescriptor, HColumnDescriptor, int) + int createPreSplitLoadTestTable(Configuration, TableDescriptor, ColumnFamilyDescriptor, int) * int createPreSplitLoadTestTable(Configuration, HTableDescriptor, HColumnDescriptor[], int) + int createPreSplitLoadTestTable(Configuration, TableDescriptor, ColumnFamilyDescriptor[], int) * int createPreSplitLoadTestTable(Configuration,HTableDescriptor, HColumnDescriptor[],SplitAlgorithm, int) + int createPreSplitLoadTestTable(Configuration,TableDescriptor, ColumnFamilyDescriptor[],SplitAlgorithm, int) * HRegion createTestRegion(String, HColumnDescriptor) + HRegion createTestRegion(String, ColumnFamilyDescriptor)

    Description

      HTableDescriptor is deprecated and scheduled to be removed in 3.0. But client.Table and client.Admin method getTableDescriptor returns HTableDescriptor.

      Attachments

        1. HBASE-18241.v0.patch
          29 kB
          Chia-Ping Tsai
        2. HBASE-18241.v1.patch
          37 kB
          Chia-Ping Tsai
        3. HBASE-18241.v2.patch
          38 kB
          Chia-Ping Tsai
        4. HBASE-18241.v2.patch
          38 kB
          Chia-Ping Tsai
        5. HBASE-18241.v3.patch
          218 kB
          Chia-Ping Tsai
        6. HBASE-18241.v3.patch
          218 kB
          Chia-Ping Tsai
        7. HBASE-18241.v4.patch
          221 kB
          Chia-Ping Tsai
        8. HBASE-18241.v5.patch
          256 kB
          Chia-Ping Tsai
        9. HBASE-18241.v5.patch
          256 kB
          Chia-Ping Tsai

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              gsbiju Biju Nair
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: