|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.di.mg4j.index.AbstractIndexReader
it.unimi.di.mg4j.index.QuasiSuccinctIndexReader
public class QuasiSuccinctIndexReader
An index reader for quasi-succinct indices.
Nested Class Summary | |
---|---|
protected static class |
QuasiSuccinctIndexReader.AbstractQuasiSuccinctIndexIterator
|
protected static class |
QuasiSuccinctIndexReader.CountReader
|
protected static class |
QuasiSuccinctIndexReader.EliasFanoIndexIterator
|
protected static class |
QuasiSuccinctIndexReader.EliasFanoPointerReader
|
protected static class |
QuasiSuccinctIndexReader.LongWordBitReader
|
protected static class |
QuasiSuccinctIndexReader.PointerReader
|
protected static class |
QuasiSuccinctIndexReader.PositionReader
|
protected static class |
QuasiSuccinctIndexReader.RankedIndexIterator
|
protected static class |
QuasiSuccinctIndexReader.RankedPointerReader
|
Field Summary | |
---|---|
protected QuasiSuccinctIndexReader.EliasFanoIndexIterator |
eliasFanoIndexIterator
An index iterator that can read Elias-Fano pointer lists. |
protected QuasiSuccinctIndex |
index
The index, cached. |
protected QuasiSuccinctIndexReader.RankedIndexIterator |
rankedIndexIterator
An index iterator that can read ranked pointer lists. |
Fields inherited from class it.unimi.di.mg4j.index.AbstractIndexReader |
---|
closed |
Constructor Summary | |
---|---|
QuasiSuccinctIndexReader(QuasiSuccinctIndex index)
|
Method Summary | |
---|---|
IndexIterator |
documents(CharSequence term)
Returns an index iterator over the documents containing a term; the term is given explicitly. |
IndexIterator |
documents(int termNumber)
Returns a document iterator over the documents containing a term. |
IndexIterator |
nextIterator()
Throws an UnsupportedOperationException . |
Methods inherited from class it.unimi.di.mg4j.index.AbstractIndexReader |
---|
close, finalize |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.Closeable |
---|
close |
Field Detail |
---|
protected final QuasiSuccinctIndexReader.EliasFanoIndexIterator eliasFanoIndexIterator
protected final QuasiSuccinctIndexReader.RankedIndexIterator rankedIndexIterator
protected final QuasiSuccinctIndex index
Constructor Detail |
---|
public QuasiSuccinctIndexReader(QuasiSuccinctIndex index)
Method Detail |
---|
public IndexIterator documents(int termNumber) throws IOException
IndexReader
Note 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.
documents
in interface IndexReader
termNumber
- the number of a term.
IOException
public IndexIterator documents(CharSequence term) throws IOException
IndexReader
Unless 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()
.
documents
in interface IndexReader
term
- a term (the term will be downcased if the index is case insensitive).
IOException
public IndexIterator nextIterator() throws IOException
AbstractIndexReader
UnsupportedOperationException
.
nextIterator
in interface IndexReader
nextIterator
in class AbstractIndexReader
null
if there are no more terms
after the current one.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |