diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2013-04-11 16:22:55 -0400 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2013-04-12 16:40:38 -0400 |
commit | ef3d06fb6c5402d56a90ad60fd61c761021b92a7 (patch) | |
tree | 4097ad3c2fa71297977faddae8bc6c8028c3997e /src/mongo/db/index/fts_access_method.h | |
parent | 7797f459758a98bce90593e583f90c858a287a1c (diff) | |
download | mongo-ef3d06fb6c5402d56a90ad60fd61c761021b92a7.tar.gz |
migrate fts/haystack + add/del logic SERVER-8791 SERVER-9164 SERVER-9165
Diffstat (limited to 'src/mongo/db/index/fts_access_method.h')
-rw-r--r-- | src/mongo/db/index/fts_access_method.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/mongo/db/index/fts_access_method.h b/src/mongo/db/index/fts_access_method.h new file mode 100644 index 00000000000..9909924df87 --- /dev/null +++ b/src/mongo/db/index/fts_access_method.h @@ -0,0 +1,42 @@ +/** +* Copyright (C) 2013 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 + +#include "mongo/base/status.h" +#include "mongo/db/fts/fts_spec.h" +#include "mongo/db/index/index_descriptor.h" +#include "mongo/db/index/btree_access_method_internal.h" +#include "mongo/db/jsobj.h" + +namespace mongo { + + class FTSAccessMethod : public BtreeBasedAccessMethod { + public: + FTSAccessMethod(IndexDescriptor* descriptor); + virtual ~FTSAccessMethod() { } + + // Not implemented: + virtual Status newCursor(IndexCursor** out); + + private: + // Implemented: + virtual void getKeys(const BSONObj& obj, BSONObjSet* keys); + + fts::FTSSpec _ftsSpec; + }; + +} //namespace mongo |