predicate.java

来自「dragontoolkit用于机器学习」· Java 代码 · 共 37 行

JAVA
37
字号
package dragon.ir.query;/** * <p>Interface of predicate which is the least unit of IR query</p> * <p></p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: IST, Drexel University</p> * @author Davis Zhou * @version 1.0 */public interface Predicate extends IRQuery{    static final int PREDICATE_TERM=1;    static final int PREDICATE_RELATION=2;    static final int PREDICATE_QUALIFIER=3;    static final int PREDICATE_SIMPLE=1;    static final int PREDICATE_BOOL=2;    /**     * @return a double socre indicating how specific the query predicate is.     */    public double getSelectivity();    public double getWeight();    public void setWeight(double weight);    public boolean isSimplePredicate();    public boolean isBoolPredicate();    public boolean isTermPredicate();    public boolean isRelationPredicate();    public boolean isQualifierPredicate();    /**     * @return the underlying expression of the current predicate     */    public Expression getConstraint();    public String toSQLExpression();    public String toString();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?