class AccessPathImpl extends java.lang.Object implements AccessPath
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
accessPathName |
(package private) ConglomerateDescriptor |
cd |
private CostEstimate |
costEstimate |
(package private) boolean |
coveringIndexScan |
(package private) JoinStrategy |
joinStrategy |
(package private) int |
lockMode |
(package private) boolean |
nonMatchingIndexScan |
(package private) Optimizer |
optimizer |
| Constructor and Description |
|---|
AccessPathImpl(Optimizer optimizer) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(AccessPath copyFrom)
Copy all information from the given AccessPath to this one.
|
ConglomerateDescriptor |
getConglomerateDescriptor()
Get whatever was last set as the conglomerate descriptor.
|
CostEstimate |
getCostEstimate()
Get the cost estimate for this AccessPath.
|
boolean |
getCoveringIndexScan()
Return whether or not the optimizer is considering a covering index
scan on this AccessPath.
|
JoinStrategy |
getJoinStrategy()
Get the join strategy, as set by setJoinStrategy().
|
int |
getLockMode()
Get the lock mode, as last set in setLockMode().
|
boolean |
getNonMatchingIndexScan()
Return whether or not the optimizer is considering a non-matching
index scan on this AccessPath.
|
Optimizer |
getOptimizer()
Get the optimizer associated with this access path.
|
void |
initializeAccessPathName(DataDictionary dd,
TableDescriptor td)
Sets the "name" of the access path. if the access path represents an
index then set the name to the name of the index. if it is an index
created for a constraint, use the constraint name.
|
void |
setConglomerateDescriptor(ConglomerateDescriptor cd)
Set the conglomerate descriptor for this access path.
|
void |
setCostEstimate(CostEstimate costEstimate)
Set the given cost estimate in this AccessPath.
|
void |
setCoveringIndexScan(boolean coveringIndexScan)
Set whether or not to consider a covering index scan on the optimizable.
|
void |
setJoinStrategy(JoinStrategy joinStrategy)
Remember the given join strategy
|
void |
setLockMode(int lockMode)
Set the lock mode
|
void |
setNonMatchingIndexScan(boolean nonMatchingIndexScan)
Set whether or not to consider a non-matching index scan on this
AccessPath.
|
java.lang.String |
toString() |
ConglomerateDescriptor cd
private CostEstimate costEstimate
boolean coveringIndexScan
boolean nonMatchingIndexScan
JoinStrategy joinStrategy
int lockMode
Optimizer optimizer
private java.lang.String accessPathName
AccessPathImpl(Optimizer optimizer)
public void setConglomerateDescriptor(ConglomerateDescriptor cd)
AccessPathsetConglomerateDescriptor in interface AccessPathcd - A ConglomerateDescriptorAccessPath.setConglomerateDescriptor(org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor)public ConglomerateDescriptor getConglomerateDescriptor()
AccessPathgetConglomerateDescriptor in interface AccessPathAccessPath.getConglomerateDescriptor()public void setCostEstimate(CostEstimate costEstimate)
AccessPathsetCostEstimate in interface AccessPathAccessPath.setCostEstimate(org.apache.derby.iapi.sql.compile.CostEstimate)public CostEstimate getCostEstimate()
AccessPathgetCostEstimate in interface AccessPathAccessPath.getCostEstimate()public void setCoveringIndexScan(boolean coveringIndexScan)
AccessPathsetCoveringIndexScan in interface AccessPathAccessPath.setCoveringIndexScan(boolean)public boolean getCoveringIndexScan()
AccessPathgetCoveringIndexScan in interface AccessPathAccessPath.getCoveringIndexScan()public void setNonMatchingIndexScan(boolean nonMatchingIndexScan)
AccessPathsetNonMatchingIndexScan in interface AccessPathAccessPath.setNonMatchingIndexScan(boolean)public boolean getNonMatchingIndexScan()
AccessPathgetNonMatchingIndexScan in interface AccessPathAccessPath.getNonMatchingIndexScan()public void setJoinStrategy(JoinStrategy joinStrategy)
AccessPathsetJoinStrategy in interface AccessPathjoinStrategy - The best join strategyAccessPath.setJoinStrategy(org.apache.derby.iapi.sql.compile.JoinStrategy)public JoinStrategy getJoinStrategy()
AccessPathgetJoinStrategy in interface AccessPathAccessPath.getJoinStrategy()public void setLockMode(int lockMode)
AccessPathsetLockMode in interface AccessPathAccessPath.setLockMode(int)public int getLockMode()
AccessPathgetLockMode in interface AccessPathAccessPath.getLockMode()public void copy(AccessPath copyFrom)
AccessPathcopy in interface AccessPathAccessPath.copy(org.apache.derby.iapi.sql.compile.AccessPath)public Optimizer getOptimizer()
AccessPathgetOptimizer in interface AccessPathAccessPath.getOptimizer()public java.lang.String toString()
toString in class java.lang.Objectpublic void initializeAccessPathName(DataDictionary dd, TableDescriptor td) throws StandardException
AccessPathinitializeAccessPathName in interface AccessPathdd - Datadictionary.td - TableDescriptor of the base table.StandardException - on error.AccessPath.initializeAccessPathName(org.apache.derby.iapi.sql.dictionary.DataDictionary, org.apache.derby.iapi.sql.dictionary.TableDescriptor)Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.