summaryrefslogtreecommitdiff
path: root/src/mongo/db/keypattern.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-04-02 14:28:21 -0400
committerHari Khalsa <hkhalsa@10gen.com>2013-04-08 15:30:35 -0400
commit50c89129eaa8c77ce24bb1e2f2965996f3757143 (patch)
treec15d1af387590bec5c51d8886aabb18bfec6b751 /src/mongo/db/keypattern.h
parentac39ed282dc9610a115d09cbf88cd1bdf0fa3ba6 (diff)
downloadmongo-50c89129eaa8c77ce24bb1e2f2965996f3757143.tar.gz
migrate hash index to new index api SERVER-8791 SERVER-9164
Diffstat (limited to 'src/mongo/db/keypattern.h')
-rw-r--r--src/mongo/db/keypattern.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/keypattern.h b/src/mongo/db/keypattern.h
index a25ce2b87e5..4c52dac2c9d 100644
--- a/src/mongo/db/keypattern.h
+++ b/src/mongo/db/keypattern.h
@@ -80,6 +80,12 @@ namespace mongo {
return _pattern.isPrefixOf( other.toBSON() );
}
+ /**
+ * Return the first string value in the provided object. For an index key pattern,
+ * a field with a non-string value indicates a "special" (not straight Btree) index.
+ */
+ static string findPluginName(const BSONObj& keyPattern);
+
/* Takes a BSONObj whose field names are a prefix of the fields in this keyPattern, and
* outputs a new bound with MinKey values appended to match the fields in this keyPattern
* (or MaxKey values for descending -1 fields). This is useful in sharding for