Package it.unimi.di.big.mg4j.index
Class AbstractIndexReader
- java.lang.Object
-
- it.unimi.di.big.mg4j.index.AbstractIndexReader
-
- All Implemented Interfaces:
IndexReader
,SafelyCloseable
,Closeable
,AutoCloseable
- Direct Known Subclasses:
AbstractIndexClusterIndexReader
,BitStreamHPIndexReader
,BitStreamIndexReader
,GammaDeltaGammaDeltaBitStreamHPIndexReader
,GammaDeltaGammaDeltaBitStreamIndexReader
,QuasiSuccinctIndexReader
,SkipGammaDeltaGammaDeltaBitStreamIndexReader
public abstract class AbstractIndexReader extends Object implements IndexReader
An abstract, safely closeable implementation of an index reader.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
closed
Whether this reader has been closed.
-
Constructor Summary
Constructors Constructor Description AbstractIndexReader()
-
Method Summary
Modifier and Type Method Description void
close()
protected void
finalize()
IndexIterator
nextIterator()
Throws anUnsupportedOperationException
.-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.unimi.di.big.mg4j.index.IndexReader
documents, documents
-
-
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
finalize
protected void finalize() throws Throwable
-
nextIterator
public IndexIterator nextIterator() throws IOException
Throws anUnsupportedOperationException
.- Specified by:
nextIterator
in interfaceIndexReader
- Returns:
- the index iterator of the next term, or
null
if there are no more terms after the current one. - Throws:
IOException
-
-