seqScan method
Implementation
CostEstimate seqScan(String table) {
final ts = stats.get(table);
if (ts == null) {
return const CostEstimate(
totalCost: 1000.0, rows: 1000.0, method: 'SeqScan(unknown)');
}
final cost = ts.pageCount * CostConstants.seqIoCost +
ts.rowCount * CostConstants.cpuTupleCost;
return CostEstimate(
totalCost: cost, rows: ts.rowCount.toDouble(), method: 'SeqScan($table)');
}