Class AbstractIndexClusterIndexReader
- java.lang.Object
-
- it.unimi.di.big.mg4j.index.AbstractIndexReader
-
- it.unimi.di.big.mg4j.index.cluster.AbstractIndexClusterIndexReader
-
- All Implemented Interfaces:
IndexReader,SafelyCloseable,Closeable,AutoCloseable
- Direct Known Subclasses:
DocumentalClusterIndexReader,LexicalClusterIndexReader
public abstract class AbstractIndexClusterIndexReader extends AbstractIndexReader
An abstract implementation of anIndexReaderfor anIndexCluster. It just keeps track of one reader per local index inindexReader. It is up to the implementing subclasses to use the readers appropriately.- Author:
- Alessandro Arrabito, Sebastiano Vigna
-
-
Field Summary
Fields Modifier and Type Field Description protected IndexReader[]indexReaderOne reader per local index.-
Fields inherited from class it.unimi.di.big.mg4j.index.AbstractIndexReader
closed
-
-
Constructor Summary
Constructors Constructor Description AbstractIndexClusterIndexReader(IndexCluster index, int bufferSize)
-
Method Summary
Modifier and Type Method Description voidclose()-
Methods inherited from class it.unimi.di.big.mg4j.index.AbstractIndexReader
finalize, nextIterator
-
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
-
-
-
-
Field Detail
-
indexReader
protected final IndexReader[] indexReader
One reader per local index.
-
-
Constructor Detail
-
AbstractIndexClusterIndexReader
public AbstractIndexClusterIndexReader(IndexCluster index, int bufferSize) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classAbstractIndexReader- Throws:
IOException
-
-