Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,23 @@ public static boolean isSkipStarTree(Map<String, String> queryOptions) {
return "false".equalsIgnoreCase(queryOptions.get(QueryOptionKey.USE_STAR_TREE));
}

/**
* Returns true if the inverted-index-based distinct operator should be used.
*/
public static boolean isUseInvertedIndexDistinct(Map<String, String> queryOptions) {
return Boolean.parseBoolean(queryOptions.get(QueryOptionKey.USE_INVERTED_INDEX_DISTINCT));
}

/**
* Returns the cost ratio for the inverted-index-based distinct heuristic, or null if not set.
* The inverted index path is chosen when dictionaryCardinality * costRatio <= filteredDocCount.
*/
@Nullable
public static Integer getInvertedIndexDistinctCostRatio(Map<String, String> queryOptions) {
return checkedParseIntPositive("invertedIndexDistinctCostRatio",
queryOptions.get(QueryOptionKey.INVERTED_INDEX_DISTINCT_COST_RATIO));
}

public static boolean isSkipScanFilterReorder(Map<String, String> queryOptions) {
return "false".equalsIgnoreCase(queryOptions.get(QueryOptionKey.USE_SCAN_REORDER_OPTIMIZATION));
}
Expand Down
Loading
Loading