⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 irquery.java

📁 dragontoolkit用于机器学习
💻 JAVA
字号:
package dragon.ir.query;

/**
 * <p>Interface 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 IRQuery {
    /**
     * @return the unique id of the query
     */
    public int getQueryKey();
    public void setQueryKey(int key);

    /**
     * A predicate always begins with a ltter T (term predicate), R(relation predicate), or M(modifier predicate)
     * @return true if the the current query denotes a simple predicate, otherwise false.
     */
    public boolean isPredicate();

    /**
     * If the current query denotes a simple predicate, this method returns false, otherwise true.
     * @return false if the the current query denotes a simple predicate, otherwise true.
     */
    public boolean isCompoundQuery();
    public boolean isRelSimpleQuery();
    public boolean isRelBoolQuery();
    public IRQuery getChild(int index);
    public int getChildNum();
    public double getSelectivity();
    public Operator getOperator();
    public String toString();

    /**
     * @param query the query string
     * @return a structured query
     */
    public boolean parse(String query);
}

⌨️ 快捷键说明

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