Package org.apache.lucene.index
Class IndexWriterMaxDocsChanger
- java.lang.Object
-
- org.apache.lucene.index.IndexWriterMaxDocsChanger
-
public final class IndexWriterMaxDocsChanger extends Object
Accessor to make some package protected methods inIndexWriter
available for testing.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
restoreMaxDocs()
Returns to the defaultIndexWriter.MAX_DOCS
limit.static void
setMaxDocs(int limit)
TellsIndexWriter
to enforce the specified limit as the maximum number of documents in one index; callrestoreMaxDocs()
once your test is done.
-
-
-
Method Detail
-
setMaxDocs
public static void setMaxDocs(int limit)
TellsIndexWriter
to enforce the specified limit as the maximum number of documents in one index; callrestoreMaxDocs()
once your test is done.
-
restoreMaxDocs
public static void restoreMaxDocs()
Returns to the defaultIndexWriter.MAX_DOCS
limit.
-
-