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)
AccessPath
setConglomerateDescriptor
in interface AccessPath
cd
- A ConglomerateDescriptorAccessPath.setConglomerateDescriptor(org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor)
public ConglomerateDescriptor getConglomerateDescriptor()
AccessPath
getConglomerateDescriptor
in interface AccessPath
AccessPath.getConglomerateDescriptor()
public void setCostEstimate(CostEstimate costEstimate)
AccessPath
setCostEstimate
in interface AccessPath
AccessPath.setCostEstimate(org.apache.derby.iapi.sql.compile.CostEstimate)
public CostEstimate getCostEstimate()
AccessPath
getCostEstimate
in interface AccessPath
AccessPath.getCostEstimate()
public void setCoveringIndexScan(boolean coveringIndexScan)
AccessPath
setCoveringIndexScan
in interface AccessPath
AccessPath.setCoveringIndexScan(boolean)
public boolean getCoveringIndexScan()
AccessPath
getCoveringIndexScan
in interface AccessPath
AccessPath.getCoveringIndexScan()
public void setNonMatchingIndexScan(boolean nonMatchingIndexScan)
AccessPath
setNonMatchingIndexScan
in interface AccessPath
AccessPath.setNonMatchingIndexScan(boolean)
public boolean getNonMatchingIndexScan()
AccessPath
getNonMatchingIndexScan
in interface AccessPath
AccessPath.getNonMatchingIndexScan()
public void setJoinStrategy(JoinStrategy joinStrategy)
AccessPath
setJoinStrategy
in interface AccessPath
joinStrategy
- The best join strategyAccessPath.setJoinStrategy(org.apache.derby.iapi.sql.compile.JoinStrategy)
public JoinStrategy getJoinStrategy()
AccessPath
getJoinStrategy
in interface AccessPath
AccessPath.getJoinStrategy()
public void setLockMode(int lockMode)
AccessPath
setLockMode
in interface AccessPath
AccessPath.setLockMode(int)
public int getLockMode()
AccessPath
getLockMode
in interface AccessPath
AccessPath.getLockMode()
public void copy(AccessPath copyFrom)
AccessPath
copy
in interface AccessPath
AccessPath.copy(org.apache.derby.iapi.sql.compile.AccessPath)
public Optimizer getOptimizer()
AccessPath
getOptimizer
in interface AccessPath
AccessPath.getOptimizer()
public java.lang.String toString()
toString
in class java.lang.Object
public void initializeAccessPathName(DataDictionary dd, TableDescriptor td) throws StandardException
AccessPath
initializeAccessPathName
in interface AccessPath
dd
- 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.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.