Jelajahi Sumber

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 tahun lalu
induk
melakukan
6544451248
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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