我想测试一个 Jackson 节点是否匹配一组条件,用 MongoDb查询运算符(或最终 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) {
....
}