public class LexicalClusterIndexReader extends AbstractIndexClusterIndexReader
indexReaderclosed| Constructor and Description |
|---|
LexicalClusterIndexReader(LexicalCluster index,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
IndexIterator |
documents(CharSequence term)
Returns an index iterator over the documents containing a term; the term is
given explicitly.
|
IndexIterator |
documents(long term)
Returns a document iterator over the documents containing a term.
|
closefinalize, nextIteratorpublic LexicalClusterIndexReader(LexicalCluster index, int bufferSize) throws IOException
IOExceptionpublic IndexIterator documents(long term) throws IOException
IndexReaderNote that the index iterator returned by this method will
return null on a call to term().
Note that it is always possible to call this method with argument 0, even if the underlying index does not provide random access.
term - the number of a term.IOExceptionpublic IndexIterator documents(CharSequence term) throws IOException
IndexReaderUnless the term processor of
the associated index is null, words coming from a query will
have to be processed before being used with this method.
Note that the index iterator returned by this method will
return term on a call to term().
term - a term (the term will be downcased if the index is case insensitive).IOException