public interface DocumentExtractor extends Closeable
getFirstIndex() and getMaxIndex() define the boundaries available to extract(int).
DocumentExtractor objects *must* be closed when the results are no longer traversed. See close()| Modifier and Type | Method and Description |
|---|---|
void |
close() |
EntityInfo |
extract(int index)
Retrieves entity information for the result at the given index.
|
int |
getFirstIndex() |
int |
getMaxIndex() |
org.apache.lucene.search.TopDocs |
getTopDocs() |
EntityInfo extract(int index) throws IOException
index - The requested result index.IOException - if an error occurs while extracting the results.int getFirstIndex()
int getMaxIndex()
void close()
close in interface AutoCloseableclose in interface Closeableorg.apache.lucene.search.TopDocs getTopDocs()
TopDocs instanceCopyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.