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

HBase Admin security capabilities should be represented as a Set

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 3.0.0-alpha-1
    • None
    • None
    • None
    • Reviewed

    Description

      org.apache.hadoop.hbase.client.Admin
        /**
         * Return the set of supported security capabilities.
         * @throws IOException
         * @throws UnsupportedOperationException
         */
        List<SecurityCapability> getSecurityCapabilities() throws IOException;
      

      The comment says a "set" but it returns a List. A Set would be the most appropriate data structure here, an immutable one perhaps, because the code that interacts with it looks up information using the contains method which would be served well by a Set. Please change this interface to return a Set.

      Attachments

        Issue Links

          Activity

            People

              belugabehr David Mollitor
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: