@Override public Long getEstimateInfoTimestamp() throws SQLException { return aggPlan.getEstimateInfoTimestamp(); } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return bestPlan.getEstimateInfoTimestamp(); }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return queryPlan.getEstimateInfoTimestamp(); } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return delegate.getEstimateInfoTimestamp(); } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return aggPlan.getEstimateInfoTimestamp(); }
private void getEstimates() throws SQLException { getEstimatesCalled = true; for (QueryPlan plan : plans) { if (plan.getEstimatedBytesToScan() == null || plan.getEstimatedRowsToScan() == null || plan.getEstimateInfoTimestamp() == null) { /* * If any of the sub plans doesn't have the estimate info available, then we don't * provide estimate for the overall plan */ estimatedBytes = null; estimatedRows = null; estimateInfoTs = null; break; } else { estimatedBytes = add(estimatedBytes, plan.getEstimatedBytesToScan()); estimatedRows = add(estimatedRows, plan.getEstimatedRowsToScan()); estimateInfoTs = getMin(estimateInfoTs, plan.getEstimateInfoTimestamp()); } } } }
private void getEstimates() throws SQLException { getEstimatesCalled = true; if ((lhsPlan.getEstimatedBytesToScan() == null || rhsPlan.getEstimatedBytesToScan() == null) || (lhsPlan.getEstimatedRowsToScan() == null || rhsPlan.getEstimatedRowsToScan() == null) || (lhsPlan.getEstimateInfoTimestamp() == null || rhsPlan.getEstimateInfoTimestamp() == null)) { /* * If any of the sub plans doesn't have the estimate info available, then we don't * provide estimate for the overall plan */ estimatedBytes = null; estimatedRows = null; estimateInfoTs = null; } else { estimatedBytes = add(add(estimatedBytes, lhsPlan.getEstimatedBytesToScan()), rhsPlan.getEstimatedBytesToScan()); estimatedRows = add(add(estimatedRows, lhsPlan.getEstimatedRowsToScan()), rhsPlan.getEstimatedRowsToScan()); estimateInfoTs = getMin(lhsPlan.getEstimateInfoTimestamp(), rhsPlan.getEstimateInfoTimestamp()); } } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return queryPlan.getEstimateInfoTimestamp(); } }
private void getEstimates() throws SQLException { getEstimatesCalled = true; for (SubPlan subPlan : subPlans) { if (subPlan.getInnerPlan().getEstimatedBytesToScan() == null || subPlan.getInnerPlan().getEstimatedRowsToScan() == null || subPlan.getInnerPlan().getEstimateInfoTimestamp() == null) { /* * If any of the sub plans doesn't have the estimate info available, then we don't * provide estimate for the overall plan */ estimatedBytes = null; estimatedRows = null; estimateInfoTs = null; break; } else { estimatedBytes = add(estimatedBytes, subPlan.getInnerPlan().getEstimatedBytesToScan()); estimatedRows = add(estimatedRows, subPlan.getInnerPlan().getEstimatedRowsToScan()); estimateInfoTs = getMin(estimateInfoTs, subPlan.getInnerPlan().getEstimateInfoTimestamp()); } } } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return delegate.getEstimateInfoTimestamp(); } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return aggPlan.getEstimateInfoTimestamp(); } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return aggPlan.getEstimateInfoTimestamp(); }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return bestPlan.getEstimateInfoTimestamp(); }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return aggPlan.getEstimateInfoTimestamp(); } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return queryPlan.getEstimateInfoTimestamp(); } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return delegate.getEstimateInfoTimestamp(); } }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return aggPlan.getEstimateInfoTimestamp(); }
@Override public Long getEstimateInfoTimestamp() throws SQLException { return bestPlan.getEstimateInfoTimestamp(); }
private void getEstimates() throws SQLException { getEstimatesCalled = true; for (QueryPlan plan : plans) { if (plan.getEstimatedBytesToScan() == null || plan.getEstimatedRowsToScan() == null || plan.getEstimateInfoTimestamp() == null) { /* * If any of the sub plans doesn't have the estimate info available, then we don't * provide estimate for the overall plan */ estimatedBytes = null; estimatedRows = null; estimateInfoTs = null; break; } else { estimatedBytes = add(estimatedBytes, plan.getEstimatedBytesToScan()); estimatedRows = add(estimatedRows, plan.getEstimatedRowsToScan()); estimateInfoTs = getMin(estimateInfoTs, plan.getEstimateInfoTimestamp()); } } } }
private void getEstimates() throws SQLException { getEstimatesCalled = true; for (QueryPlan plan : plans) { if (plan.getEstimatedBytesToScan() == null || plan.getEstimatedRowsToScan() == null || plan.getEstimateInfoTimestamp() == null) { /* * If any of the sub plans doesn't have the estimate info available, then we don't * provide estimate for the overall plan */ estimatedBytes = null; estimatedRows = null; estimateInfoTs = null; break; } else { estimatedBytes = add(estimatedBytes, plan.getEstimatedBytesToScan()); estimatedRows = add(estimatedRows, plan.getEstimatedRowsToScan()); estimateInfoTs = getMin(estimateInfoTs, plan.getEstimateInfoTimestamp()); } } } }