Matches types based on a Context Bound.
Matches types based on a Context Bound. Requires anchoring to prevent compiler confusion:
"foo".$type[Double]
For those who want to pass the static byte from org.
For those who want to pass the static byte from org.bson.BSON explicitly (or with the simple BSON spec indicator) TODO: Test for a valid byte, right now we accept anything you say.
Base method for children to call to convert an operator call into a Mongo DBObject.
Base method for children to call to convert an operator call into a Mongo DBObject.
e.g. "foo" $ne "bar" will convert to
{"foo": {"$ne": "bar"}}
Optionally, if dbObj, being Some(DBObject) is defined,
the op(oper, ) method will nest the target value and operator
inside the existing dbObj - this is useful for things like mixing
$lte and $gte
WARNING: This does NOT check that target is a serializable type.
That is, for the moment, your own problem.
Temporary fix code for making sure certain edge cases w/ the serialization libs Don't happen.
Temporary fix code for making sure certain edge cases w/ the serialization libs Don't happen. This may impose a slight performance penalty.
$type operator to query by type.
Can type a BSON.<enum value> or a Context Bounded check.
2.0
http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7B%24type%7D%7D