public QueryEvaluationContext getNestedContext(JsonNode node, Path relativePath) { return new QueryEvaluationContext(this, node, relativePath); }
public QueryEvaluationContext getNestedContext(JsonNode node, Path relativePath) { return new QueryEvaluationContext(this, node, relativePath); }
public QueryEvaluationContext getNestedContext(JsonNode node, Path relativePath) { return new QueryEvaluationContext(this, node, relativePath); }
public QueryEvaluationContext firstElementNestedContext(JsonNode node, Path arrayField) { MutablePath p = new MutablePath(arrayField); p.push(0); return new QueryEvaluationContext(this, node, p); }
public QueryEvaluationContext firstElementNestedContext(JsonNode node, Path arrayField) { MutablePath p = new MutablePath(arrayField); p.push(0); return new QueryEvaluationContext(this, node, p); }
public QueryEvaluationContext evaluate(JsonDoc doc) { QueryEvaluationContext ctx = new QueryEvaluationContext(doc.getRoot()); evaluate(ctx); return ctx; }
public QueryEvaluationContext evaluate(JsonDoc doc) { QueryEvaluationContext ctx = new QueryEvaluationContext(doc.getRoot()); evaluate(ctx); return ctx; }
public QueryEvaluationContext firstElementNestedContext(JsonNode node, Path arrayField) { MutablePath p = new MutablePath(arrayField); p.push(0); return new QueryEvaluationContext(this, node, p); }
public QueryEvaluationContext evaluate(JsonDoc doc) { QueryEvaluationContext ctx = new QueryEvaluationContext(doc.getRoot()); evaluate(ctx); return ctx; }
/** * Projects a document */ public JsonDoc project(JsonDoc doc, JsonNodeFactory factory) { JsonNodeCursor cursor = doc.cursor(); cursor.firstChild(); ObjectNode root = (ObjectNode) project(factory, rootMdPath, cursor, new QueryEvaluationContext(doc.getRoot()), false); if (root == null) { root = factory.objectNode(); } return new JsonDoc(root); }
/** * Projects a document */ public JsonDoc project(JsonDoc doc, JsonNodeFactory factory) { JsonNodeCursor cursor = doc.cursor(); cursor.firstChild(); ObjectNode root = (ObjectNode) project(factory, rootMdPath, cursor, new QueryEvaluationContext(doc.getRoot()), false); if (root == null) { root = factory.objectNode(); } return new JsonDoc(root); }
/** * Projects a document */ public JsonDoc project(JsonDoc doc, JsonNodeFactory factory) { JsonNodeCursor cursor = doc.cursor(); cursor.firstChild(); ObjectNode root = projectObject(this, factory, rootMdNode, rootMdPath, cursor, new QueryEvaluationContext(doc.getRoot())); return new JsonDoc(root); }
Path elementPath = itrPath.immutableCopy(); LOGGER.debug("itr:{}", elementPath); QueryEvaluationContext ctx = new QueryEvaluationContext(doc.getRoot(), elementNode, elementPath); if (updateInfo.queryEvaluator.evaluate(ctx)) { LOGGER.debug("query matches {}", elementPath);
Path elementPath = itrPath.immutableCopy(); LOGGER.debug("itr:{}", elementPath); QueryEvaluationContext ctx = new QueryEvaluationContext(elementNode, elementPath); if (queryEvaluator.evaluate(ctx)) { LOGGER.debug("query matches {}", elementPath);
Path elementPath = itrPath.immutableCopy(); LOGGER.debug("itr:{}", elementPath); QueryEvaluationContext ctx = new QueryEvaluationContext(doc.getRoot(), elementNode, elementPath); if (updateInfo.queryEvaluator.evaluate(ctx)) { LOGGER.debug("query matches {}", elementPath);