X-Git-Url: https://git.mdrn.pl/pylucene.git/blobdiff_plain/a2e61f0c04805cfcb8706176758d1283c7e3a55c..aaeed5504b982cf3545252ab528713250aa33eed:/lucene-java-3.4.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/CategoryListIterator.java diff --git a/lucene-java-3.4.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/CategoryListIterator.java b/lucene-java-3.4.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/CategoryListIterator.java deleted file mode 100644 index 5a134c4..0000000 --- a/lucene-java-3.4.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/CategoryListIterator.java +++ /dev/null @@ -1,69 +0,0 @@ -package org.apache.lucene.facet.search; - -import java.io.IOException; - -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * An interface for iterating over a "category list", i.e., the list of - * categories per document. - *

- * NOTE: - *

- * - * @lucene.experimental - */ -public interface CategoryListIterator { - - /** - * Initializes the iterator. This method must be called before any calls to - * {@link #skipTo(int)}, and its return value indicates whether there are - * any relevant documents for this iterator. If it returns false, any call - * to {@link #skipTo(int)} will return false as well.
- * NOTE: calling this method twice may result in skipping over - * documents for some implementations. Also, calling it again after all - * documents were consumed may yield unexpected behavior. - */ - public boolean init() throws IOException; - - /** - * Skips forward to document docId. Returns true iff this document exists - * and has any categories. This method must be called before calling - * {@link #nextCategory()} for a particular document.
- * NOTE: Users should call this method with increasing docIds, and - * implementations can assume that this is the case. - */ - public boolean skipTo(int docId) throws IOException; - - /** - * Returns the next category for the current document that is set through - * {@link #skipTo(int)}, or a number higher than {@link Integer#MAX_VALUE}. - * No assumptions can be made on the order of the categories. - */ - public long nextCategory() throws IOException; - -}