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

📄 documentiterator.java

📁 MG4J (Managing Gigabytes for Java) is a free full-text search engine for large document collections
💻 JAVA
字号:
package it.unimi.dsi.mg4j.document;/*		  * MG4J: Managing Gigabytes for Java * * Copyright (C) 2005-2007 Paolo Boldi and Sebastiano Vigna  * *  This library is free software; you can redistribute it and/or modify it *  under the terms of the GNU Lesser General Public License as published by the Free *  Software Foundation; either version 2.1 of the License, or (at your option) *  any later version. * *  This library is distributed in the hope that it will be useful, but *  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License *  for more details. * *  You should have received a copy of the GNU Lesser General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */import java.io.Closeable;import java.io.IOException;/** An iterator over documents. *  * <p>This interface provide a {@link #nextDocument()} * method returning the next document, or <code>null</code> if * no more documents are available. Usually * you would need to {@link Document#close()} each document when you * are finished with it, but in the present case it is * guaranteed that each call to {@link DocumentIterator#nextDocument()} * will close the previously returned document.  *  * <p>An additional {@link #close()} method releases all resources * used by the iterator. Implementations are invited to be  * {@link it.unimi.dsi.io.SafelyCloseable safely closeable}.  */public interface DocumentIterator extends Closeable {	/** Returns the next document.	 * 	 * @return the next document, or <code>null</code> if there are no other documents.	 */	public Document nextDocument() throws IOException;		/** Closes this document iterator, releasing all resources. 	 * 	 * <p>You should always call this method after having finished with this iterator.	 * Implementations are invited to call this method in a finaliser as a safety net, but since there	 * is no guarantee as to when finalisers are invoked, you should not depend on this behaviour. 	 */		public void close() throws IOException;}

⌨️ 快捷键说明

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