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

📄 abstractindexer.java

📁 一个用于搜索本地文件内容的小型搜索引擎
💻 JAVA
字号:
package invertedList;

import java.io.File;

import stemmer.IStemmer;

/**
 * @author Administrator
 * an abstract class, which represents an indexer
 */
public abstract class AbstractIndexer {
	/**
	 * In the indexing process, the indexer will use the stemmer to stem every word
	 * that it extracts from the document.
	 */
	protected IStemmer stemmer;
	/**
	 * the indexer will use the factory to get the extractor, so it can get the content
	 * of the document
	 */
	protected ExtractorFactory factory;
	/**
	 * @param file
	 * this method is used to index a specific file
	 */
	abstract void doindex(File file);
}

⌨️ 快捷键说明

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