public class DummyOptTrace
extends java.lang.Object
implements org.apache.derby.iapi.sql.compile.OptTrace
Modifier and Type | Class and Description |
---|---|
static class |
DummyOptTrace.BadSubclass |
Modifier and Type | Field and Description |
---|---|
private java.lang.StringBuffer |
_buffer |
private static java.lang.String |
_fullTrace |
Constructor and Description |
---|
DummyOptTrace()
0-arg constructor required by OptTrace contract
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fullTrace() |
void |
printToWriter(java.io.PrintWriter out) |
void |
traceAddingUnorderedOptimizable(int predicateCount) |
void |
traceChangingAccessPathForTable(int tableNumber) |
void |
traceCheapestPlanSoFar(int planType,
org.apache.derby.iapi.sql.compile.CostEstimate currentCost) |
void |
traceCompleteJoinOrder() |
void |
traceCompositeSelectivityFromStatistics(double statCompositeSelectivity) |
void |
traceConsideringConglomerate(org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor cd,
int tableNumber) |
void |
traceConsideringJoinStrategy(org.apache.derby.iapi.sql.compile.JoinStrategy js,
int tableNumber) |
void |
traceConstantStartStopPositions() |
void |
traceCostIncludingCompositeSelectivityFromStats(org.apache.derby.iapi.sql.compile.CostEstimate cost,
int tableNumber) |
void |
traceCostIncludingExtra1stColumnSelectivity(org.apache.derby.iapi.sql.compile.CostEstimate cost,
int tableNumber) |
void |
traceCostIncludingExtraNonQualifierSelectivity(org.apache.derby.iapi.sql.compile.CostEstimate cost,
int tableNumber) |
void |
traceCostIncludingExtraQualifierSelectivity(org.apache.derby.iapi.sql.compile.CostEstimate cost,
int tableNumber) |
void |
traceCostIncludingExtraStartStop(org.apache.derby.iapi.sql.compile.CostEstimate cost,
int tableNumber) |
void |
traceCostIncludingStatsForIndex(org.apache.derby.iapi.sql.compile.CostEstimate cost,
int tableNumber) |
void |
traceCostOfConglomerateScan(int tableNumber,
org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor cd,
org.apache.derby.iapi.sql.compile.CostEstimate costEstimate,
int numExtraFirstColumnPreds,
double extraFirstColumnSelectivity,
int numExtraStartStopPreds,
double extraStartStopSelectivity,
int startStopPredCount,
double statStartStopSelectivity,
int numExtraQualifiers,
double extraQualifierSelectivity,
int numExtraNonQualifiers,
double extraNonQualifierSelectivity) |
void |
traceCostOfNoncoveringIndex(org.apache.derby.iapi.sql.compile.CostEstimate cost,
int tableNumber) |
void |
traceCostOfNScans(int tableNumber,
double rowCount,
org.apache.derby.iapi.sql.compile.CostEstimate cost) |
void |
traceCostWithoutSortAvoidance(org.apache.derby.iapi.sql.compile.CostEstimate currentCost) |
void |
traceCostWithSortAvoidance(org.apache.derby.iapi.sql.compile.CostEstimate currentSortAvoidanceCost) |
void |
traceCurrentPlanAvoidsSort(org.apache.derby.iapi.sql.compile.CostEstimate bestCost,
org.apache.derby.iapi.sql.compile.CostEstimate currentSortAvoidanceCost) |
void |
traceEndQueryBlock() |
void |
traceEstimatingCostOfConglomerate(org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor cd,
int tableNumber) |
void |
traceHashKeyColumns(int[] hashKeyColumns) |
void |
traceIllegalUserJoinOrder() |
void |
traceJoinOrderConsideration(int joinPosition,
int[] proposedJoinOrder,
org.apache.derby.iapi.util.JBitSet assignedTableMap) |
void |
traceLookingForSpecifiedIndex(java.lang.String indexName,
int tableNumber) |
void |
traceModifyingAccessPaths(int optimizerID) |
void |
traceNextAccessPath(java.lang.String baseTable,
int predicateCount) |
void |
traceNoBestPlan() |
void |
traceNoMoreConglomerates(int tableNumber) |
void |
traceNonCoveringIndexCost(double cost,
int tableNumber) |
void |
traceNoStartStopPosition() |
void |
traceOptimizingJoinNode() |
void |
traceRememberingBestAccessPath(org.apache.derby.iapi.sql.compile.AccessPath accessPath,
int tableNumber,
int planType) |
void |
traceRememberingBestAccessPathSubstring(org.apache.derby.iapi.sql.compile.AccessPath ap,
int tableNumber) |
void |
traceRememberingBestJoinOrder(int joinPosition,
int[] bestJoinOrder,
int planType,
org.apache.derby.iapi.sql.compile.CostEstimate planCost,
org.apache.derby.iapi.util.JBitSet assignedTableMap) |
void |
traceRememberingBestSortAvoidanceAccessPathSubstring(org.apache.derby.iapi.sql.compile.AccessPath ap,
int tableNumber) |
void |
traceRememberingBestUnknownAccessPathSubstring(org.apache.derby.iapi.sql.compile.AccessPath ap,
int tableNumber) |
void |
traceRememberingJoinStrategy(org.apache.derby.iapi.sql.compile.JoinStrategy joinStrategy,
int tableNumber) |
void |
traceScanningHeapWithUniqueKey() |
void |
traceShortCircuiting(boolean timeExceeded,
org.apache.derby.iapi.sql.compile.Optimizable thisOpt,
int joinPosition) |
void |
traceSingleMatchedRowCost(double cost,
int tableNumber) |
void |
traceSkipHashJoinNoHashKeys() |
void |
traceSkippingBecauseTooMuchMemory(int maxMemoryPerTable) |
void |
traceSkippingJoinOrder(int nextOptimizable,
int joinPosition,
int[] proposedJoinOrder,
org.apache.derby.iapi.util.JBitSet assignedTableMap) |
void |
traceSkipUnmaterializableHashJoin() |
void |
traceSortCost(org.apache.derby.iapi.sql.compile.CostEstimate sortCost,
org.apache.derby.iapi.sql.compile.CostEstimate currentCost) |
void |
traceSortNeededForOrdering(int planType,
org.apache.derby.iapi.sql.compile.RequiredRowOrdering requiredRowOrdering) |
void |
traceStartQueryBlock(long timeOptimizationStarted,
int optimizerID,
org.apache.derby.iapi.sql.compile.OptimizableList optimizableList) |
void |
traceStartStatement(java.lang.String statementText) |
void |
traceTimeout(long currentTime,
org.apache.derby.iapi.sql.compile.CostEstimate bestCost) |
void |
traceUserJoinOrderOptimized() |
void |
traceVacuous() |
private java.lang.StringBuffer _buffer
private static java.lang.String _fullTrace
public DummyOptTrace()
public static java.lang.String fullTrace()
public void traceStartStatement(java.lang.String statementText)
traceStartStatement
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void printToWriter(java.io.PrintWriter out)
printToWriter
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceStartQueryBlock(long timeOptimizationStarted, int optimizerID, org.apache.derby.iapi.sql.compile.OptimizableList optimizableList)
traceStartQueryBlock
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceEndQueryBlock()
traceEndQueryBlock
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceTimeout(long currentTime, org.apache.derby.iapi.sql.compile.CostEstimate bestCost)
traceTimeout
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceVacuous()
traceVacuous
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCompleteJoinOrder()
traceCompleteJoinOrder
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceSortCost(org.apache.derby.iapi.sql.compile.CostEstimate sortCost, org.apache.derby.iapi.sql.compile.CostEstimate currentCost)
traceSortCost
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceNoBestPlan()
traceNoBestPlan
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceModifyingAccessPaths(int optimizerID)
traceModifyingAccessPaths
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceShortCircuiting(boolean timeExceeded, org.apache.derby.iapi.sql.compile.Optimizable thisOpt, int joinPosition)
traceShortCircuiting
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceSkippingJoinOrder(int nextOptimizable, int joinPosition, int[] proposedJoinOrder, org.apache.derby.iapi.util.JBitSet assignedTableMap)
traceSkippingJoinOrder
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceIllegalUserJoinOrder()
traceIllegalUserJoinOrder
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceUserJoinOrderOptimized()
traceUserJoinOrderOptimized
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceJoinOrderConsideration(int joinPosition, int[] proposedJoinOrder, org.apache.derby.iapi.util.JBitSet assignedTableMap)
traceJoinOrderConsideration
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostWithoutSortAvoidance(org.apache.derby.iapi.sql.compile.CostEstimate currentCost)
traceCostWithoutSortAvoidance
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostWithSortAvoidance(org.apache.derby.iapi.sql.compile.CostEstimate currentSortAvoidanceCost)
traceCostWithSortAvoidance
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCurrentPlanAvoidsSort(org.apache.derby.iapi.sql.compile.CostEstimate bestCost, org.apache.derby.iapi.sql.compile.CostEstimate currentSortAvoidanceCost)
traceCurrentPlanAvoidsSort
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCheapestPlanSoFar(int planType, org.apache.derby.iapi.sql.compile.CostEstimate currentCost)
traceCheapestPlanSoFar
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceSortNeededForOrdering(int planType, org.apache.derby.iapi.sql.compile.RequiredRowOrdering requiredRowOrdering)
traceSortNeededForOrdering
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceRememberingBestJoinOrder(int joinPosition, int[] bestJoinOrder, int planType, org.apache.derby.iapi.sql.compile.CostEstimate planCost, org.apache.derby.iapi.util.JBitSet assignedTableMap)
traceRememberingBestJoinOrder
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceSkippingBecauseTooMuchMemory(int maxMemoryPerTable)
traceSkippingBecauseTooMuchMemory
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostOfNScans(int tableNumber, double rowCount, org.apache.derby.iapi.sql.compile.CostEstimate cost)
traceCostOfNScans
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceSkipUnmaterializableHashJoin()
traceSkipUnmaterializableHashJoin
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceSkipHashJoinNoHashKeys()
traceSkipHashJoinNoHashKeys
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceHashKeyColumns(int[] hashKeyColumns)
traceHashKeyColumns
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceOptimizingJoinNode()
traceOptimizingJoinNode
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceConsideringJoinStrategy(org.apache.derby.iapi.sql.compile.JoinStrategy js, int tableNumber)
traceConsideringJoinStrategy
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceRememberingBestAccessPath(org.apache.derby.iapi.sql.compile.AccessPath accessPath, int tableNumber, int planType)
traceRememberingBestAccessPath
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceNoMoreConglomerates(int tableNumber)
traceNoMoreConglomerates
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceConsideringConglomerate(org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor cd, int tableNumber)
traceConsideringConglomerate
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceScanningHeapWithUniqueKey()
traceScanningHeapWithUniqueKey
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceAddingUnorderedOptimizable(int predicateCount)
traceAddingUnorderedOptimizable
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceChangingAccessPathForTable(int tableNumber)
traceChangingAccessPathForTable
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceNoStartStopPosition()
traceNoStartStopPosition
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceNonCoveringIndexCost(double cost, int tableNumber)
traceNonCoveringIndexCost
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceConstantStartStopPositions()
traceConstantStartStopPositions
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceEstimatingCostOfConglomerate(org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor cd, int tableNumber)
traceEstimatingCostOfConglomerate
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceLookingForSpecifiedIndex(java.lang.String indexName, int tableNumber)
traceLookingForSpecifiedIndex
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceSingleMatchedRowCost(double cost, int tableNumber)
traceSingleMatchedRowCost
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostIncludingExtra1stColumnSelectivity(org.apache.derby.iapi.sql.compile.CostEstimate cost, int tableNumber)
traceCostIncludingExtra1stColumnSelectivity
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceNextAccessPath(java.lang.String baseTable, int predicateCount)
traceNextAccessPath
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostIncludingExtraStartStop(org.apache.derby.iapi.sql.compile.CostEstimate cost, int tableNumber)
traceCostIncludingExtraStartStop
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostIncludingExtraQualifierSelectivity(org.apache.derby.iapi.sql.compile.CostEstimate cost, int tableNumber)
traceCostIncludingExtraQualifierSelectivity
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostIncludingExtraNonQualifierSelectivity(org.apache.derby.iapi.sql.compile.CostEstimate cost, int tableNumber)
traceCostIncludingExtraNonQualifierSelectivity
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostOfNoncoveringIndex(org.apache.derby.iapi.sql.compile.CostEstimate cost, int tableNumber)
traceCostOfNoncoveringIndex
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceRememberingJoinStrategy(org.apache.derby.iapi.sql.compile.JoinStrategy joinStrategy, int tableNumber)
traceRememberingJoinStrategy
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceRememberingBestAccessPathSubstring(org.apache.derby.iapi.sql.compile.AccessPath ap, int tableNumber)
traceRememberingBestAccessPathSubstring
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceRememberingBestSortAvoidanceAccessPathSubstring(org.apache.derby.iapi.sql.compile.AccessPath ap, int tableNumber)
traceRememberingBestSortAvoidanceAccessPathSubstring
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceRememberingBestUnknownAccessPathSubstring(org.apache.derby.iapi.sql.compile.AccessPath ap, int tableNumber)
traceRememberingBestUnknownAccessPathSubstring
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostOfConglomerateScan(int tableNumber, org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor cd, org.apache.derby.iapi.sql.compile.CostEstimate costEstimate, int numExtraFirstColumnPreds, double extraFirstColumnSelectivity, int numExtraStartStopPreds, double extraStartStopSelectivity, int startStopPredCount, double statStartStopSelectivity, int numExtraQualifiers, double extraQualifierSelectivity, int numExtraNonQualifiers, double extraNonQualifierSelectivity)
traceCostOfConglomerateScan
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostIncludingCompositeSelectivityFromStats(org.apache.derby.iapi.sql.compile.CostEstimate cost, int tableNumber)
traceCostIncludingCompositeSelectivityFromStats
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCompositeSelectivityFromStatistics(double statCompositeSelectivity)
traceCompositeSelectivityFromStatistics
in interface org.apache.derby.iapi.sql.compile.OptTrace
public void traceCostIncludingStatsForIndex(org.apache.derby.iapi.sql.compile.CostEstimate cost, int tableNumber)
traceCostIncludingStatsForIndex
in interface org.apache.derby.iapi.sql.compile.OptTrace
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.