@Override public void visit( ChildNode obj ) { verify(obj.selectorName()); verifyPath(obj.getParentPath()); }
protected ChildNode childNode( SelectorName name, String path ) { return new ChildNode(name, path); }
SelectorName replacement = rewrittenSelectors.get(childNode.selectorName()); if (replacement == null) return childNode; return new ChildNode(replacement, childNode.getParentPath());
ChildNode childConstraint = (ChildNode)constraint; PathFactory paths = context.getExecutionContext().getValueFactories().getPathFactory(); final Path parentPath = paths.create(childConstraint.getParentPath()); final NodeCache cache = context.getNodeCache(sources.getWorkspaceName()); final CachedNode parent = sources.getNodeAtPath(parentPath, cache); final String selectorName = childConstraint.getSelectorName(); final int index = columns.getSelectorIndex(selectorName); return new RowFilter() {
@Override public void visit( ChildNode childNode ) { symbols.add(childNode.selectorName()); }
} else if (constraint instanceof ChildNode) { ChildNode childNode = (ChildNode)constraint; String path = childNode.getParentPath(); calculator.addIndex(CHILDREN_BY_PATH_INDEX_NAME, null, null, singletonList(constraint), 10, 100L, -1.0f, PATH_PARAMETER, path);
SelectorName replacement = rewrittenSelectors.get(childNode.selectorName()); if (replacement == null) return childNode; return new ChildNode(replacement, childNode.getParentPath());
ChildNode childConstraint = (ChildNode)constraint; PathFactory paths = context.getExecutionContext().getValueFactories().getPathFactory(); final Path parentPath = paths.create(childConstraint.getParentPath()); final NodeCache cache = context.getNodeCache(sources.getWorkspaceName()); final CachedNode parent = sources.getNodeAtPath(parentPath, cache); final String selectorName = childConstraint.getSelectorName(); final int index = columns.getSelectorIndex(selectorName); return new RowFilter() {
@Override public void visit( ChildNode childNode ) { symbols.add(childNode.selectorName()); }
} else if (constraint instanceof ChildNode) { ChildNode childNode = (ChildNode)constraint; String path = childNode.getParentPath(); calculator.addIndex(CHILDREN_BY_PATH_INDEX_NAME, null, null, singletonList(constraint), 10, 100L, -1.0f, PATH_PARAMETER, path);
return new ChildNode(childNode.selectorName(), childNode.getParentPath());
@Override public void visit( ChildNode obj ) { verify(obj.selectorName()); verifyPath(obj.getParentPath()); }
protected ChildNode childNode( SelectorName name, String path ) { return new ChildNode(name, path); }
return new ChildNode(childNode.selectorName(), childNode.getParentPath());
@Override public void visit( ChildNode child ) { append("ISCHILDNODE("); append(child.selectorName()); append(','); append(SINGLE_QUOTE); append(child.getParentPath()); append(SINGLE_QUOTE); append(')'); }
/** * Define a constraint clause that the node within the named table is the child of the node at the supplied path. * * @param childTable the name of the table; may not be null and must refer to a valid name or alias of a table appearing * in the FROM clause * @param parentPath the path to the parent node * @return the constraint builder that was used to create this clause; never null */ public ConstraintBuilder isChild( String childTable, String parentPath ) { return setConstraint(new ChildNode(selector(childTable), parentPath)); }
if (!mapping.getOriginalName().equals(childNode.selectorName())) return childNode; if (!mapping.isMappedToSingleSelector()) return childNode; SelectorName selector = mapping.getSingleMappedSelectorName(); node.addSelector(selector); return new ChildNode(selector, childNode.getParentPath());
@Override public void visit( ChildNode child ) { append("ISCHILDNODE("); append(child.selectorName()); append(','); append(SINGLE_QUOTE); append(child.getParentPath()); append(SINGLE_QUOTE); append(')'); }
/** * Define a constraint clause that the node within the named table is the child of the node at the supplied path. * * @param childTable the name of the table; may not be null and must refer to a valid name or alias of a table appearing * in the FROM clause * @param parentPath the path to the parent node * @return the constraint builder that was used to create this clause; never null */ public ConstraintBuilder isChild( String childTable, String parentPath ) { return setConstraint(new ChildNode(selector(childTable), parentPath)); }
if (!mapping.getOriginalName().equals(childNode.selectorName())) return childNode; if (!mapping.isMappedToSingleSelector()) return childNode; SelectorName selector = mapping.getSingleMappedSelectorName(); node.addSelector(selector); return new ChildNode(selector, childNode.getParentPath());