Tabnine Logo
org.apache.jackrabbit.oak.query.ast
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.jackrabbit.oak.query.ast

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

origin: apache/jackrabbit-oak

/**
 * Calls accept on the two operands in the comparison node.
 */
@Override
public boolean visit(ComparisonImpl node) {
  node.getOperand1().accept(this);
  node.getOperand2().accept(this);
  return true;
}

origin: apache/jackrabbit-oak

@Override
public void restrictPushDown(SelectorImpl s) {
  if (operand2.currentValue() != null) {
    if (operand1.canRestrictSelector(s)) {
      s.restrictSelector(this);
    }
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Calls accept on the two sources and the join condition in the join node.
 */
@Override
public boolean visit(JoinImpl node) {
  node.getLeft().accept(this);
  node.getRight().accept(this);
  node.getJoinCondition().accept(this);
  return true;
}
origin: apache/jackrabbit-oak

/**
 * Calls accept on the all operands in the "in" node.
 */
@Override
public boolean visit(InImpl node) {
  node.getOperand1().accept(this);
  for (StaticOperandImpl s : node.getOperand2()) {
    s.accept(this);
  }
  return true;
}
origin: apache/jackrabbit-oak

@Override
public boolean visit(FullTextSearchImpl node) {
  node.setQuery(query);
  node.bindSelector(source);
  return super.visit(node);
}
origin: apache/jackrabbit-oak

  @Override
  public AstElement copyOf() {
    return new ComparisonImpl(operand1.createCopy(), operator, operand2);
  }
}
origin: apache/jackrabbit-oak

private void pushDown() {
  if (queryConstraint != null) {
    queryConstraint.restrictPushDown(this);
  }
  if (!outerJoinLeftHandSide && !outerJoinRightHandSide) {
    for (JoinConditionImpl c : allJoinConditions) {
      c.restrictPushDown(this);
    }
  }
}
origin: apache/jackrabbit-oak

/**
 * Calls accept on each of the attached constraints of the AND node.
 */
@Override
public boolean visit(AndImpl node) {
  for (ConstraintImpl constraint : node.getConstraints()) {
    constraint.accept(this);
  }
  return true;
}
origin: apache/jackrabbit-oak

/**
 * Calls accept on the static operand in the similar search constraint.
 */
@Override
public boolean visit(SimilarImpl node) {
  node.getPathExpression().accept(this);
  return true;
}

origin: apache/jackrabbit-oak

/**
 * Calls accept on the static operand in the suggest search constraint.
 */
@Override
public boolean visit(SuggestImpl node) {
  node.getExpression().accept(this);
  return true;
}
origin: apache/jackrabbit-oak

/**
 * Calls accept on the dynamic operand in the lower-case node.
 */
@Override
public boolean visit(UpperCaseImpl node) {
  return node.getOperand().accept(this);
}
origin: apache/jackrabbit-oak

@Override
public boolean visit(CoalesceImpl node) {
  node.setQuery(query);
  return super.visit(node);
}
origin: apache/jackrabbit-oak

@Override
public boolean visit(LowerCaseImpl node) {
  node.setQuery(query);
  return super.visit(node);
}
origin: apache/jackrabbit-oak

@Override
public boolean visit(ComparisonImpl node) {
  node.setQuery(query);
  return super.visit(node);
}
origin: apache/jackrabbit-oak

@Override
public boolean visit(OrImpl node) {
  node.setQuery(query);
  return super.visit(node);
}
origin: org.apache.jackrabbit/oak-core

/**
 * Calls accept on the two operands in the comparison node.
 */
@Override
public boolean visit(ComparisonImpl node) {
  node.getOperand1().accept(this);
  node.getOperand2().accept(this);
  return true;
}

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

/**
 * Calls accept on the all operands in the "in" node.
 */
@Override
public boolean visit(InImpl node) {
  node.getOperand1().accept(this);
  for (StaticOperandImpl s : node.getOperand2()) {
    s.accept(this);
  }
  return true;
}
origin: org.apache.jackrabbit/oak-core

@Override
public void restrictPushDown(SelectorImpl s) {
  if (operand2.currentValue() != null) {
    if (operand1.canRestrictSelector(s)) {
      s.restrictSelector(this);
    }
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Calls accept on the two operands in the comparison node.
 */
@Override
public boolean visit(ComparisonImpl node) {
  node.getOperand1().accept(this);
  node.getOperand2().accept(this);
  return true;
}

origin: org.apache.jackrabbit/oak-core

@Override
public void restrictPushDown(SelectorImpl s) {
  for (StaticOperandImpl op : operand2) {
    if (op.currentValue() == null) {
      // one unknown value means it is not pushed down
      return;
    }
  }
  if (operand1.canRestrictSelector(s)) {
    s.restrictSelector(this);
  }
}
org.apache.jackrabbit.oak.query.ast

Most used classes

  • NodeTypeInfoProvider
    A nodetype info mechanism.
  • SelectorImpl
    A selector within a query.
  • AndImpl
    An AND condition.
  • ComparisonImpl
    A comparison operation (including "like").
  • ConstraintImpl
    The base class for constraints.
  • InImpl,
  • OrImpl,
  • AstElement,
  • AstElementFactory,
  • AstVisitor,
  • AstVisitorBase,
  • BindVariableValueImpl,
  • ChildNodeImpl,
  • ChildNodeJoinConditionImpl,
  • CoalesceImpl,
  • ColumnImpl,
  • DescendantNodeImpl,
  • DescendantNodeJoinConditionImpl,
  • DynamicOperandImpl
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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