Class JoinUtil
- java.lang.Object
-
- org.teiid.query.optimizer.relational.rules.JoinUtil
-
public class JoinUtil extends Object
Utility methods for query planning related to joins.
In some cases, a query plan can be made more optimal via a few possible criteria/join optimizations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JoinType
getJoinTypePreventingCriteriaOptimization(PlanNode joinNode, Set<GroupSymbol> groups)
static boolean
isNullDependent(QueryMetadataInterface metadata, Collection<GroupSymbol> innerGroups, Criteria crit)
Returns true if the given criteria can be anything other than false (or unknown) given all null values for elements in the inner groupsstatic boolean
isNullDependent(QueryMetadataInterface metadata, Collection<GroupSymbol> innerGroups, Expression expr)
-
-
-
Method Detail
-
isNullDependent
public static boolean isNullDependent(QueryMetadataInterface metadata, Collection<GroupSymbol> innerGroups, Criteria crit)
Returns true if the given criteria can be anything other than false (or unknown) given all null values for elements in the inner groups
-
isNullDependent
public static boolean isNullDependent(QueryMetadataInterface metadata, Collection<GroupSymbol> innerGroups, Expression expr)
-
getJoinTypePreventingCriteriaOptimization
public static JoinType getJoinTypePreventingCriteriaOptimization(PlanNode joinNode, Set<GroupSymbol> groups)
-
-