Class IndexReaderFactory
- java.lang.Object
-
- in.cdac.medinfo.csnotk.csnolib.factory.IndexReaderFactory
-
public class IndexReaderFactory extends java.lang.Object- Author:
- root Factory implementation of IndexReader Factory method implementation for IndexReader for getting singleton object for IndexReader to read index from given directory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalize()org.apache.lucene.index.IndexReadergetIndexReader(java.lang.String refsetId)Returns unique singletonIndexReaderobject.static IndexReaderFactorygetInstance()Returns singletonIndexReaderFactoryobject.
-
-
-
Method Detail
-
getInstance
public static IndexReaderFactory getInstance()
Returns singletonIndexReaderFactoryobject.
-
getIndexReader
public org.apache.lucene.index.IndexReader getIndexReader(java.lang.String refsetId) throws java.io.IOExceptionReturns unique singletonIndexReaderobject.- Parameters:
refsetId- Identifier of Refset/Indexed Directory- Returns:
- instance of
IndexReaderrespective to refsetId/ indexed dir. - Throws:
java.io.IOException- if any error occurs while processing.
-
finalize
public void finalize()
-
-