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

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

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

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

@Override
public PropertyValue currentProperty() {
  PropertyValue p;
  if (propertyType == PropertyType.UNDEFINED) {
    p = selector.currentProperty(propertyName);
  } else {
    p = selector.currentProperty(propertyName, propertyType);
  }
  return p;        
}
origin: org.apache.jackrabbit/oak-core

/**
 * verify that a property exists in the node. {@code property IS NOT NULL}
 * 
 * @param propertyName the property to check
 * @param selector the selector to work with
 * @return true if the property is there, false otherwise.
 */
boolean enforcePropertyExistence(String propertyName, SelectorImpl selector) {
  PropertyValue p = selector.currentProperty(propertyName);
  if (p == null) {
    return false;
  }
  return true;
}

origin: org.apache.jackrabbit/oak-core

@Override
public PropertyValue currentProperty() {
  PropertyValue p;
  if (propertyType == PropertyType.UNDEFINED) {
    p = selector.currentProperty(propertyName);
  } else {
    p = selector.currentProperty(propertyName, propertyType);
  }
  return p;        
}
origin: apache/jackrabbit-oak

@Override
public boolean evaluate() {
  return selector.currentProperty(propertyName) != null;
}
origin: apache/jackrabbit-oak

@Override
public PropertyValue currentProperty() {
  PropertyValue p;
  if (propertyType == PropertyType.UNDEFINED) {
    p = selector.currentProperty(propertyName);
  } else {
    p = selector.currentProperty(propertyName, propertyType);
  }
  return p;        
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public boolean evaluate() {
  return selector.currentProperty(propertyName) != null;
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

public PropertyValue currentProperty() {
  return selector.currentProperty(propertyName);
}
origin: apache/jackrabbit-oak

public PropertyValue currentProperty() {
  return selector.currentProperty(propertyName);
}
origin: org.apache.jackrabbit/oak-core

@Override
public boolean evaluate() {
  return selector.currentProperty(propertyName) != null;
}
origin: apache/jackrabbit-oak

/**
 * verify that a property exists in the node. {@code property IS NOT NULL}
 * 
 * @param propertyName the property to check
 * @param selector the selector to work with
 * @return true if the property is there, false otherwise.
 */
boolean enforcePropertyExistence(String propertyName, SelectorImpl selector) {
  PropertyValue p = selector.currentProperty(propertyName);
  if (p == null) {
    return false;
  }
  return true;
}

origin: org.apache.jackrabbit/oak-core

public PropertyValue currentProperty() {
  return selector.currentProperty(propertyName);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * verify that a property exists in the node. {@code property IS NOT NULL}
 * 
 * @param propertyName the property to check
 * @param selector the selector to work with
 * @return true if the property is there, false otherwise.
 */
boolean enforcePropertyExistence(String propertyName, SelectorImpl selector) {
  PropertyValue p = selector.currentProperty(propertyName);
  if (p == null) {
    return false;
  }
  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: 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.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

boolean isRelative = propertyName.indexOf('/') >= 0;
if (!isRelative) {
  return selector.currentProperty(propertyName) == null;
origin: org.apache.jackrabbit/oak-core

boolean isRelative = propertyName.indexOf('/') >= 0;
if (!isRelative) {
  return selector.currentProperty(propertyName) == null;
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

boolean isRelative = propertyName.indexOf('/') >= 0;
if (!isRelative) {
  return selector.currentProperty(propertyName) == null;
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

PropertyValue p1 = selector1.currentProperty(property1Name);
if (p1 == null) {
PropertyValue p2 = selector2.currentProperty(property2Name);
if (p2 == null) {
origin: apache/jackrabbit-oak

@Override
public void restrict(FilterImpl f) {
  if (f.getSelector().equals(selector1)) {
    PropertyValue p2 = selector2.currentProperty(property2Name);
    if (p2 == null && f.isPreparing() && f.isPrepared(selector2)) {
    PropertyValue p1 = selector1.currentProperty(property1Name);
    if (p1 == null && f.isPreparing() && f.isPrepared(selector1)) {
org.apache.jackrabbit.oak.query.astSelectorImplcurrentProperty

Javadoc

The value for the given selector for the current node.

Popular methods of SelectorImpl

  • <init>
  • createFilter
    Create the filter condition for planning or execution.
  • currentOakProperty
  • currentPath
    Get the current absolute Oak path (normalized).
  • currentTree
    Get the tree at the current path.
  • equals
  • evaluateCurrentRow
  • evaluateTypeMatch
  • getExecutionPlan
  • getIndex
  • getLocalPath
  • getMixinTypes
  • getLocalPath,
  • getMixinTypes,
  • getNodeType,
  • getPrimaryTypes,
  • getQuery,
  • getScanCount,
  • getSelectorName,
  • getSupertypes,
  • getTree

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JCheckBox (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
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