Tabnine Logo
SelectorImpl.getTree
Code IndexAdd Tabnine to your IDE (free)

How to use
getTree
method
in
org.apache.jackrabbit.oak.query.ast.SelectorImpl

Best Java code snippets using org.apache.jackrabbit.oak.query.ast.SelectorImpl.getTree (Showing top 15 results out of 315)

origin: apache/jackrabbit-oak

/**
 * Get the tree at the current path.
 * 
 * @return the current tree, or null
 */
public Tree currentTree() {
  String path = currentPath();
  if (path == null) {
    return null;
  }
  return getTree(path);
}

origin: org.apache.jackrabbit/oak-core

/**
 * Get the tree at the current path.
 * 
 * @return the current tree, or null
 */
public Tree currentTree() {
  String path = currentPath();
  if (path == null) {
    return null;
  }
  return getTree(path);
}

origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Get the tree at the current path.
 * 
 * @return the current tree, or null
 */
public Tree currentTree() {
  String path = currentPath();
  if (path == null) {
    return null;
  }
  return getTree(path);
}

origin: apache/jackrabbit-oak

@Override
public boolean evaluate() {
  // disable evaluation if a fulltext index is used,
  // and because we don't know how to process native
  // conditions
  if (!(selector.getIndex() instanceof FulltextQueryIndex)) {
    log.warn("No full-text index was found that can process the condition " + toString());
    return false;
  }
  // verify the path is readable
  PropertyValue p = pathExpression.currentValue();
  String path = p.getValue(Type.STRING);
  if (selector.getTree(path) == null) {
    return false;
  }
  if (propertyName != null) {
    if (selector.currentProperty(propertyName) == null) {
      // property not found
      return false;
    }
  }
  
  // we assume the index only returns the requested entries
  return true;
}
origin: org.apache.jackrabbit/oak-core

@Override
public boolean evaluate() {
  // disable evaluation if a fulltext index is used,
  // and because we don't know how to process native
  // conditions
  if (!(selector.getIndex() instanceof FulltextQueryIndex)) {
    log.warn("No full-text index was found that can process the condition " + toString());
    return false;
  }
  // verify the path is readable
  PropertyValue p = pathExpression.currentValue();
  String path = p.getValue(Type.STRING);
  if (selector.getTree(path) == null) {
    return false;
  }
  if (propertyName != null) {
    if (selector.currentProperty(propertyName) == null) {
      // property not found
      return false;
    }
  }
  
  // we assume the index only returns the requested entries
  return true;
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public boolean evaluate() {
  // disable evaluation if a fulltext index is used,
  // and because we don't know how to process native
  // conditions
  if (!(selector.getIndex() instanceof FulltextQueryIndex)) {
    log.warn("No full-text index was found that can process the condition " + toString());
    return false;
  }
  // verify the path is readable
  PropertyValue p = pathExpression.currentValue();
  String path = p.getValue(Type.STRING);
  if (selector.getTree(path) == null) {
    return false;
  }
  if (propertyName != null) {
    if (selector.currentProperty(propertyName) == null) {
      // property not found
      return false;
    }
  }
  
  // we assume the index only returns the requested entries
  return true;
}
origin: apache/jackrabbit-oak

private boolean evaluateTypeMatch() {
  Tree tree = getTree(currentRow.getPath());
  if (tree == null || !tree.exists()) {
    return false;
  }
  PropertyState primary = tree.getProperty(JCR_PRIMARYTYPE);
  if (primary != null && primary.getType() == NAME) {
    String name = primary.getValue(NAME);
    if (primaryTypes.contains(name)) {
      return true;
    }
  }
  PropertyState mixins = tree.getProperty(JCR_MIXINTYPES);
  if (mixins != null && mixins.getType() == NAMES) {
    for (String name : mixins.getValue(NAMES)) {
      if (mixinTypes.contains(name)) {
        return true;
      }
    }
  }
  // no matches found
  return false; 
}
origin: org.apache.jackrabbit/oak-core

private boolean evaluateTypeMatch() {
  Tree tree = getTree(currentRow.getPath());
  if (tree == null || !tree.exists()) {
    return false;
  }
  PropertyState primary = tree.getProperty(JCR_PRIMARYTYPE);
  if (primary != null && primary.getType() == NAME) {
    String name = primary.getValue(NAME);
    if (primaryTypes.contains(name)) {
      return true;
    }
  }
  PropertyState mixins = tree.getProperty(JCR_MIXINTYPES);
  if (mixins != null && mixins.getType() == NAMES) {
    for (String name : mixins.getValue(NAMES)) {
      if (mixinTypes.contains(name)) {
        return true;
      }
    }
  }
  // no matches found
  return false; 
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

private boolean evaluateTypeMatch() {
  Tree tree = getTree(currentRow.getPath());
  if (tree == null || !tree.exists()) {
    return false;
  }
  PropertyState primary = tree.getProperty(JCR_PRIMARYTYPE);
  if (primary != null && primary.getType() == NAME) {
    String name = primary.getValue(NAME);
    if (primaryTypes.contains(name)) {
      return true;
    }
  }
  PropertyState mixins = tree.getProperty(JCR_MIXINTYPES);
  if (mixins != null && mixins.getType() == NAMES) {
    for (String name : mixins.getValue(NAMES)) {
      if (mixinTypes.contains(name)) {
        return true;
      }
    }
  }
  // no matches found
  return false; 
}
origin: apache/jackrabbit-oak

Tree tree = getTree(currentRow.getPath());
if (tree == null || !tree.exists()) {
  continue;
origin: org.apache.jackrabbit/oak-core

Tree tree = getTree(currentRow.getPath());
if (tree == null || !tree.exists()) {
  continue;
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

Tree tree = getTree(currentRow.getPath());
if (tree == null || !tree.exists()) {
  continue;
origin: org.apache.jackrabbit/oak-core

Tree tree = selector.getTree(path);
if (tree == null || !tree.exists()) {
  return false;
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

Tree tree = selector.getTree(path);
if (tree == null || !tree.exists()) {
  return false;
origin: apache/jackrabbit-oak

Tree tree = selector.getTree(path);
if (tree == null || !tree.exists()) {
  return false;
org.apache.jackrabbit.oak.query.astSelectorImplgetTree

Javadoc

Get the tree at the given path.

Popular methods of SelectorImpl

  • <init>
  • createFilter
    Create the filter condition for planning or execution.
  • currentOakProperty
  • currentPath
    Get the current absolute Oak path (normalized).
  • currentProperty
    The value for the given selector for the current node, filtered by property type.
  • currentTree
    Get the tree at the current path.
  • equals
  • evaluateCurrentRow
  • evaluateTypeMatch
  • getExecutionPlan
  • getIndex
  • getLocalPath
  • getIndex,
  • getLocalPath,
  • getMixinTypes,
  • getNodeType,
  • getPrimaryTypes,
  • getQuery,
  • getScanCount,
  • getSelectorName,
  • getSupertypes

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now