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 inIndexWriteravailable for testing.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidrestoreMaxDocs()Returns to the defaultIndexWriter.MAX_DOCSlimit.static voidsetMaxDocs(int limit)TellsIndexWriterto enforce the specified limit as the maximum number of documents in one index; callrestoreMaxDocs()once your test is done.
 
- 
- 
- 
Method Detail- 
setMaxDocspublic static void setMaxDocs(int limit) TellsIndexWriterto enforce the specified limit as the maximum number of documents in one index; callrestoreMaxDocs()once your test is done.
 - 
restoreMaxDocspublic static void restoreMaxDocs() Returns to the defaultIndexWriter.MAX_DOCSlimit.
 
- 
 
-