瀏覽代碼

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 年之前
父節點
當前提交
6544451248
共有 1 個文件被更改,包括 3 次插入0 次删除
  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