@Override public AstElement copyOf() { return new SuggestImpl(selectorName, expression); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("suggest("); builder.append(quote(selectorName)); builder.append(", "); builder.append(getExpression()); builder.append(')'); return builder.toString(); }
@Override public boolean visit(SuggestImpl node) { node.setQuery(query); node.bindSelector(source); return super.visit(node); }
/** * Calls accept on the static operand in the suggest search constraint. */ @Override public boolean visit(SuggestImpl node) { node.getExpression().accept(this); return true; }
@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; } // we assume the index only returns the requested entries return true; }
@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("suggest("); builder.append(quote(selectorName)); builder.append(", "); builder.append(getExpression()); builder.append(')'); return builder.toString(); }
@Override public boolean visit(SuggestImpl node) { node.setQuery(query); node.bindSelector(source); return super.visit(node); }
/** * Calls accept on the static operand in the suggest search constraint. */ @Override public boolean visit(SuggestImpl node) { node.getExpression().accept(this); return true; }
@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; } // we assume the index only returns the requested entries return true; }
@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("suggest("); builder.append(quote(selectorName)); builder.append(", "); builder.append(getExpression()); builder.append(')'); return builder.toString(); }
@Override public boolean visit(SuggestImpl node) { node.setQuery(query); node.bindSelector(source); return super.visit(node); }
@Override public AstElement copyOf() { return new SuggestImpl(selectorName, expression); }
/** * Calls accept on the static operand in the suggest search constraint. */ @Override public boolean visit(SuggestImpl node) { node.getExpression().accept(this); return true; }
@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; } // we assume the index only returns the requested entries return true; }
@Override public AstElement copyOf() { return new SuggestImpl(selectorName, expression); }
public ConstraintImpl suggest(String selectorName, StaticOperandImpl expression) { return new SuggestImpl(selectorName, expression); }
public ConstraintImpl suggest(String selectorName, StaticOperandImpl expression) { return new SuggestImpl(selectorName, expression); }
public ConstraintImpl suggest(String selectorName, StaticOperandImpl expression) { return new SuggestImpl(selectorName, expression); }