public abstract class IndexReaderFactory extends Object implements NamedListInitializedPlugin
| Modifier and Type | Field and Description |
|---|---|
protected int |
termInfosIndexDivisor |
| Constructor and Description |
|---|
IndexReaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
int |
getTermInfosIndexDivisor() |
void |
init(NamedList args)
Potentially initializes
termInfosIndexDivisor. |
abstract org.apache.lucene.index.IndexReader |
newReader(org.apache.lucene.store.Directory indexDir,
boolean readOnly)
Creates a new IndexReader instance using the given Directory.
|
public void init(NamedList args)
termInfosIndexDivisor. Overriding classes should call super.init() in order
to make sure termInfosIndexDivisor is set.
init will be called just once, immediately after creation.
The args are user-level initialization parameters that may be specified when declaring an indexReaderFactory in solrconfig.xml
init in interface NamedListInitializedPluginpublic int getTermInfosIndexDivisor()
termInfosIndexDivisorpublic abstract org.apache.lucene.index.IndexReader newReader(org.apache.lucene.store.Directory indexDir,
boolean readOnly)
throws IOException
indexDir - indexDir index locationreadOnly - return readOnly IndexReaderIOException