@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; }
@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; }
@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; }