Pārlūkot izejas kodu

Merge pull request #5610 from ghalliday/issue11089

HPCC-11089 Add inline functions to expose the alreadySortedLocally flags

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 gadi atpakaļ
vecāks
revīzija
6544451248
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      rtl/include/eclhelper.hpp

+ 3 - 0
rtl/include/eclhelper.hpp

@@ -1675,6 +1675,9 @@ struct IHThorJoinBaseArg : public IHThorArg
     virtual ICompare * queryCompareLeftRightLower() = 0;
     virtual ICompare * queryCompareLeftRightUpper() = 0;
     virtual ICompare * queryPrefixCompare() = 0;
+
+    inline bool isLeftAlreadyLocallySorted() { return (getJoinFlags() & JFleftSortedLocally) != 0; }
+    inline bool isRightAlreadyLocallySorted() { return (getJoinFlags() & JFrightSortedLocally) != 0; }
 };
 
 struct IHThorFetchContext : public IInterface