Class BaseJoinStrategy
java.lang.Object
org.apache.derby.impl.sql.compile.BaseJoinStrategy
- All Implemented Interfaces:
JoinStrategy
- Direct Known Subclasses:
HashJoinStrategy, NestedLoopJoinStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs it OK to use bulk fetch with this join strategy?(package private) voidfillInScanArgs1(TransactionController tc, MethodBuilder mb, Optimizable innerTable, OptimizablePredicateList predList, ExpressionClassBuilderInterface acbi, int resultRowTemplate) Push the first set of common arguments for obtaining a scan ResultSet from ResultSetFactory.(package private) final voidfillInScanArgs2(MethodBuilder mb, Optimizable innerTable, int bulkFetch, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel) booleanShould we just ignore bulk fetch with this join strategy?booleanIs this a form of hash join?protected booleanCan this join strategy be used on the outermost table of a join.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JoinStrategy
divideUpPredicateLists, doesMaterialization, estimateCost, feasible, getBasePredicates, getName, getOperatorSymbol, getScanArgs, halfOuterJoinResultSetMethodName, joinResultSetMethodName, maxCapacity, multiplyBaseCostByOuterRows, nonBasePredicateSelectivity, putBasePredicates, resultSetMethodName, scanCostType
-
Constructor Details
-
BaseJoinStrategy
BaseJoinStrategy()
-
-
Method Details
-
bulkFetchOK
public boolean bulkFetchOK()Description copied from interface:JoinStrategyIs it OK to use bulk fetch with this join strategy?- Specified by:
bulkFetchOKin interfaceJoinStrategy- See Also:
-
ignoreBulkFetch
public boolean ignoreBulkFetch()Description copied from interface:JoinStrategyShould we just ignore bulk fetch with this join strategy?- Specified by:
ignoreBulkFetchin interfaceJoinStrategy- See Also:
-
fillInScanArgs1
void fillInScanArgs1(TransactionController tc, MethodBuilder mb, Optimizable innerTable, OptimizablePredicateList predList, ExpressionClassBuilderInterface acbi, int resultRowTemplate) throws StandardException Push the first set of common arguments for obtaining a scan ResultSet from ResultSetFactory. The first 11 arguments are common for these ResultSet getters- ResultSetFactory.getBulkTableScanResultSet
- ResultSetFactory.getHashScanResultSet
- ResultSetFactory.getTableScanResultSet
- ResultSetFactory.getRaDependentTableScanResultSet
- Parameters:
tc-mb-innerTable-predList-acbi-- Throws:
StandardException
-
fillInScanArgs2
final void fillInScanArgs2(MethodBuilder mb, Optimizable innerTable, int bulkFetch, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel) throws StandardException - Throws:
StandardException
-
isHashJoin
public boolean isHashJoin()Description copied from interface:JoinStrategyIs this a form of hash join?- Specified by:
isHashJoinin interfaceJoinStrategy- Returns:
- Whether or not this strategy is a form of hash join.
- See Also:
-
validForOutermostTable
protected boolean validForOutermostTable()Can this join strategy be used on the outermost table of a join.- Returns:
- Whether or not this join strategy can be used on the outermost table of a join.
-