SameNode sameNode = (SameNode)constraint;
String path = sameNode.getPath();
calculator.addIndex(NODE_BY_PATH_INDEX_NAME, null, null, singletonList(constraint), 1, 1L, -1.0f,
PATH_PARAMETER, path);
} 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);
} else if (constraint instanceof DescendantNode) {
DescendantNode descendantNode = (DescendantNode)constraint;
String path = descendantNode.getAncestorPath();