public NativeFunctionImpl nativeFunction(String selectorName, String language, StaticOperandImpl expression) { return new NativeFunctionImpl(selectorName, language, expression); }
@Override public boolean visit(NativeFunctionImpl node) { node.setQuery(query); node.bindSelector(source); return super.visit(node); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("native("); builder.append(quote(selectorName)); builder.append(", "); builder.append(quote(language)); builder.append(", "); builder.append(getNativeSearchExpression()); builder.append(')'); return builder.toString(); }
/** * Calls accept on the static operand in the native search constraint. */ @Override public boolean visit(NativeFunctionImpl node) { node.getNativeSearchExpression().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 NativeQueryIndex)) { 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("native("); builder.append(quote(selectorName)); builder.append(", "); builder.append(quote(language)); builder.append(", "); builder.append(getNativeSearchExpression()); builder.append(')'); return builder.toString(); }
/** * Calls accept on the static operand in the native search constraint. */ @Override public boolean visit(NativeFunctionImpl node) { node.getNativeSearchExpression().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 NativeQueryIndex)) { 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 boolean visit(NativeFunctionImpl node) { node.setQuery(query); node.bindSelector(source); return super.visit(node); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("native("); builder.append(quote(selectorName)); builder.append(", "); builder.append(quote(language)); builder.append(", "); builder.append(getNativeSearchExpression()); builder.append(')'); return builder.toString(); }
@Override public AstElement copyOf() { return new NativeFunctionImpl(selectorName, language, nativeSearchExpression); }
/** * Calls accept on the static operand in the native search constraint. */ @Override public boolean visit(NativeFunctionImpl node) { node.getNativeSearchExpression().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 NativeQueryIndex)) { 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 boolean visit(NativeFunctionImpl node) { node.setQuery(query); node.bindSelector(source); return super.visit(node); }
public NativeFunctionImpl nativeFunction(String selectorName, String language, StaticOperandImpl expression) { return new NativeFunctionImpl(selectorName, language, expression); }
@Override public AstElement copyOf() { return new NativeFunctionImpl(selectorName, language, nativeSearchExpression); }
@Override public AstElement copyOf() { return new NativeFunctionImpl(selectorName, language, nativeSearchExpression); }
public NativeFunctionImpl nativeFunction(String selectorName, String language, StaticOperandImpl expression) { return new NativeFunctionImpl(selectorName, language, expression); }