diff options
Diffstat (limited to 'db/queryoptimizer.h')
-rw-r--r-- | db/queryoptimizer.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/db/queryoptimizer.h b/db/queryoptimizer.h index 40fca9e5ea1..3c41928e7e3 100644 --- a/db/queryoptimizer.h +++ b/db/queryoptimizer.h @@ -2,25 +2,25 @@ /** * Copyright (C) 2008 10gen Inc. -* +* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. -* +* * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#pragma once +#pragma once -class QueryPlan { +class QueryPlan { public: - QueryPlan() { + QueryPlan() { scanAndOrderRequired = false; simpleKeyMatch = false; } @@ -30,16 +30,16 @@ public: /* ScanAndOrder processing will be required if true */ bool scanAndOrderRequired; - /* When true, the index we are using has keys such that it can completely resolve the + /* When true, the index we are using has keys such that it can completely resolve the query expression to match by itself without ever checking the main object. */ bool simpleKeyMatch; }; -/* We put these objects inside the Database objects: that way later if we want to do +/* We put these objects inside the Database objects: that way later if we want to do stats, it's in the right place. */ -class QueryOptimizer { +class QueryOptimizer { public: QueryPlan getPlan( const char *ns, |