iqueryresult.java

来自「一个用于搜索本地文件内容的小型搜索引擎」· Java 代码 · 共 33 行

JAVA
33
字号
package invertedList;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.SortedSet;

public interface IQueryResult {
	
	//Set<String> getVagueQueryResult(String query);
	/**
	 * the Query part of the system use this method to get the List of document that match the query
	 * @param query
	 * @return string the result of the query
	 */
	Map<FileRecord,SortedSet<Integer>> getAllQueryResult(String query);
	
	/**
	 * @param notList
	 * @return string after substraction
	 * making subtractions to get the result of a not query
	 */
	Set<FileRecord> notQueryResult(Set<FileRecord> notList);
	
	Iterator<FileRecord> getAllFileRecords();
	
//	Set<FileRecord> getNameRangeResult(String from,String end);
//	
//	Set<FileRecord> getTimeRangeResult(String start,String end);
//	
//	Set<FileRecord> getSizeRangeResult(long lower,long upper);
}

⌨️ 快捷键说明

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