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

Remove the unnecessary autoboxing in FilterListBase

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      protected static boolean checkAndGetReversed(List<Filter> rowFilters, boolean defaultValue) {
        if (rowFilters.isEmpty()) {
          return defaultValue;
        }
        Boolean retValue = rowFilters.get(0).isReversed();   // this one
        boolean allEqual = rowFilters.stream().map(Filter::isReversed).allMatch(retValue::equals);
        if (!allEqual) {
          throw new IllegalArgumentException("Filters in the list must have the same reversed flag");
        }
        return retValue;
      }
      

      Attachments

        1. HBASE-20484.master.001.patch
          1 kB
          Guangxu Cheng

        Activity

          People

            gxcheng Guangxu Cheng
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: