@Override public void visit(FullTextSearchScore fullTextSearchScore) { symbols.add(fullTextSearchScore.getSelectorName()); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return getSelectorNames().hashCode(); }
/** * {@inheritDoc} * * @see org.modeshape.graph.query.QueryBuilder.OrderByOperandBuilder#fullTextSearchScore(java.lang.String) */ public OrderByBuilder fullTextSearchScore(String table) { return addOrdering(new FullTextSearchScore(selector(table))); }
/** * {@inheritDoc} * * @see org.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#fullTextSearchScore(String) */ public ComparisonBuilder fullTextSearchScore(String table) { return comparisonBuilder(new FullTextSearchScore(selector(table))); }
res = new Ordering(new FullTextSearchScore(selName), Order.ASCENDING); res = new Ordering(new FullTextSearchScore(selName), Order.DESCENDING);
/** * @see org.xcmis.search.Visitors.AbstractModelVisitor#visit(org.xcmis.search.model.operand.FullTextSearchScore) */ @Override public void visit(FullTextSearchScore node) throws VisitException { checkSelectorExistance(node.getSelectorName()); }
/** * Get the selector symbol upon which this operand applies. * * @return the one selector names used by this operand; never null */ public SelectorName getSelectorName() { return getSelectorNames().iterator().next(); }
/** * {@inheritDoc} * * @see QueryObjectModelVisitor#visit(FullTextSearchScore) */ public void visit(FullTextSearchScore score) { append("SCORE(").append(score.getSelectorName()).append(')'); }
/** * {@inheritDoc} * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof FullTextSearchScore) { FullTextSearchScore that = (FullTextSearchScore)obj; if (!this.getSelectorNames().equals(that.getSelectorNames())) { return false; } return true; } return false; }