/** * Create a mutable shallow copy of this path. * * @return */ public MutablePath mutableCopy() { return new MutablePath(this); }
/** * Create a mutable shallow copy of this path. * * @return */ public MutablePath mutableCopy() { return new MutablePath(this); }
/** * Create a mutable shallow copy of this path. * * @return */ public MutablePath mutableCopy() { return new MutablePath(this); }
@Override public MutablePath copy() { return new MutablePath(this); }
@Override public MutablePath copy() { return new MutablePath(this); }
private QueryEvaluationContext(QueryEvaluationContext ctx, JsonNode root, Path relativePath) { this.root = ctx.root; this.contextRoot = root; this.contextPath = new MutablePath(ctx.contextPath); this.contextPath.push(relativePath); }
/** * Construct the initial state of Merge by going through all the fields in * the DBObject, and checking if they exist in metadata. Those fields that * don't exist in metadata will be stored in the invisibleFields list. */ public void findInvisibleFields(DBObject dbObject) { MutablePath mp = new MutablePath(); findInvisibleFields_dbobj(dbObject, mp); LOGGER.debug("Invisible fields: {} ", invisibleFields); }
private QueryEvaluationContext(QueryEvaluationContext ctx, JsonNode root, Path relativePath) { this.contextRoot = root; this.contextPath = new MutablePath(ctx.contextPath); this.contextPath.push(relativePath); }
private QueryEvaluationContext(QueryEvaluationContext ctx, JsonNode root, Path relativePath) { this.root = ctx.root; this.contextRoot = root; this.contextPath = new MutablePath(ctx.contextPath); this.contextPath.push(relativePath); }
public PathCursor(Path p) { path = p; nextNode = resolver.resolve(path, docRoot, 0); if (nextNode != null) { nextFound = true; } if (resolver.iterators == null) { ended = true; mpath = null; } else { mpath = new MutablePath(path); } }
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 firstElementNestedContext(JsonNode node, Path arrayField) { MutablePath p = new MutablePath(arrayField); p.push(0); return new QueryEvaluationContext(this, node, p); }
@Override public Path getFullPath() { return getFullPath(new MutablePath()).immutableCopy(); }
@Override public Path getFullPath() { return getFullPath(new MutablePath()).immutableCopy(); }
@Override public Path getFullPath() { return getFullPath(new MutablePath()).immutableCopy(); }
public AbsPath(Path p, FieldTreeNode fieldNode, Path absField) { field = p; if (fieldNode instanceof ArrayElement) { MutablePath mp = new MutablePath(); fieldNode.getParent().getFullPath(mp); absArrayField = mp.immutableCopy(); } else { absArrayField = null; } this.absField = absField; }
/** * Builds a composite metadata rooted at the given entity metadata. */ public static CompositeMetadata buildCompositeMetadata(EntityMetadata root, GetMetadata gmd) { CompositeMetadata cmd = buildCompositeMetadata(root, gmd, new Path(), null, new MutablePath()); // Re-process all resolved references, rewrite their queries in absolute form rewriteAssociationQueries(cmd); return cmd; }
public AbsPath(Path p, FieldTreeNode fieldNode, Path absField) { field = p; if (fieldNode instanceof ArrayElement) { MutablePath mp = new MutablePath(); fieldNode.getParent().getFullPath(mp); absArrayField = mp.immutableCopy(); } else { absArrayField = null; } this.absField = absField; }
public AbsPath(Path p, FieldTreeNode fieldNode, Path absField) { field = p; if (fieldNode instanceof ArrayElement) { MutablePath mp = new MutablePath(); fieldNode.getParent().getFullPath(mp); absArrayField = mp.immutableCopy(); } else { absArrayField = null; } this.absField = absField; }