我想测试一个Jackson节点是否匹配一组条件,用MongoDb query operators(或最终MongoJack的DBQuery个对象表示)
是否有我错过的开箱即用的解决方案,或者我应该自己构建它?
示例界面:
/**
* Tests if context matches the set of conditions, expressed as MongoDb query operators
* @return true if it matches
*/
public boolean isMatch(JsonNode context, JsonNode conditions) {
....
}