Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18433

Convenience method for creating simple ColumnFamilyDescriptor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha-1
    • Fix Version/s: 2.0.0-alpha-2, 2.0.0
    • Component/s: Client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The old HColumnDescriptor(String) is deprecated and going away. The most straightforward replacement for it is very wordy: ColumnFamilyDescriptorBuilder.newBuilder(byte []).build()

      We can provide a more inline replacement like ColumnFamilyDescriptor.for(String) that will be useful if we do not need to actually do any modifications on it, only pass it as an argument to something (like table descriptor operations).

      We can do the same kind of improvement for TableDescriptor, but I do not think the use case is as helpful because usually we will want to do something to the modifiable TableDescriptor, and I have not seen many use cases where it is passed as an argument unadorned.

        Attachments

          Activity

            People

            • Assignee:
              mdrob Mike Drob
              Reporter:
              mdrob Mike Drob
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: