use of org.apache.jackrabbit.oak.query.ast.NodeTypeInfoProvider in project jackrabbit-oak by apache.
the class IndexPlannerTest method createFilter.
private FilterImpl createFilter(String nodeTypeName) {
NodeTypeInfoProvider nodeTypes = new NodeStateNodeTypeInfoProvider(root);
NodeTypeInfo type = nodeTypes.getNodeTypeInfo(nodeTypeName);
SelectorImpl selector = new SelectorImpl(type, nodeTypeName);
return new FilterImpl(selector, "SELECT * FROM [" + nodeTypeName + "]", new QueryEngineSettings());
}
use of org.apache.jackrabbit.oak.query.ast.NodeTypeInfoProvider in project jackrabbit-oak by apache.
the class MultiplexingLucenePropertyIndexTest method createFilter.
private FilterImpl createFilter(String nodeTypeName) {
NodeTypeInfoProvider nodeTypes = new NodeStateNodeTypeInfoProvider(initialContent);
NodeTypeInfo type = nodeTypes.getNodeTypeInfo(nodeTypeName);
SelectorImpl selector = new SelectorImpl(type, nodeTypeName);
return new FilterImpl(selector, "SELECT * FROM [" + nodeTypeName + "]", new QueryEngineSettings());
}
use of org.apache.jackrabbit.oak.query.ast.NodeTypeInfoProvider in project jackrabbit-oak by apache.
the class SolrQueryIndexTest method newSelector.
private static SelectorImpl newSelector(NodeState root, String name) {
NodeTypeInfoProvider types = new NodeStateNodeTypeInfoProvider(root);
NodeTypeInfo type = types.getNodeTypeInfo("nt:base");
return new SelectorImpl(type, name);
}
use of org.apache.jackrabbit.oak.query.ast.NodeTypeInfoProvider in project jackrabbit-oak by apache.
the class IndexPathServiceImpl method createFilter.
private FilterImpl createFilter(String nodeTypeName) {
NodeTypeInfoProvider nodeTypes = new NodeStateNodeTypeInfoProvider(nodeStore.getRoot());
NodeTypeInfo type = nodeTypes.getNodeTypeInfo(nodeTypeName);
SelectorImpl selector = new SelectorImpl(type, nodeTypeName);
return new FilterImpl(selector, "SELECT * FROM [" + nodeTypeName + "]", settings);
}
use of org.apache.jackrabbit.oak.query.ast.NodeTypeInfoProvider in project jackrabbit-oak by apache.
the class AsyncPropertyIndexTest method createFilter.
private static FilterImpl createFilter(NodeState root, String nodeTypeName) {
NodeTypeInfoProvider nodeTypes = new NodeStateNodeTypeInfoProvider(root);
NodeTypeInfo type = nodeTypes.getNodeTypeInfo(nodeTypeName);
SelectorImpl selector = new SelectorImpl(type, nodeTypeName);
return new FilterImpl(selector, "SELECT * FROM [" + nodeTypeName + "]", new QueryEngineSettings());
}
Aggregations