java.lang.Object
org.apache.lucene.internal.tests.TestSecrets
A set of static methods returning accessors for internal, package-private functionality in
Lucene. All getters may only be called by the Lucene Test Framework module. Setters are
initialized once on startup.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ConcurrentMergeSchedulerAccess
private static FilterIndexInputAccess
private static IndexPackageAccess
private static IndexWriterAccess
private static SegmentReaderAccess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
private static void
ensureNull
(Object ob) Return the accessor to internal secrets for anConcurrentMergeScheduler
.static FilterIndexInputAccess
Return the accessor to internal secrets for anFilterIndexInput
.static IndexPackageAccess
Return the accessor to internal secrets for anIndexReader
.static IndexWriterAccess
Return the accessor to internal secrets for anIndexWriter
.static SegmentReaderAccess
Return the accessor to internal secrets for anSegmentReader
.static void
For internal initialization only.static void
setFilterInputIndexAccess
(FilterIndexInputAccess filterIndexInputAccess) For internal initialization only.static void
setIndexPackageAccess
(IndexPackageAccess indexPackageAccess) For internal initialization only.static void
setIndexWriterAccess
(IndexWriterAccess indexWriterAccess) For internal initialization only.static void
setSegmentReaderAccess
(SegmentReaderAccess segmentReaderAccess) For internal initialization only.
-
Field Details
-
indexPackageAccess
-
cmsAccess
-
segmentReaderAccess
-
indexWriterAccess
-
filterIndexInputAccess
-
-
Constructor Details
-
TestSecrets
private TestSecrets()
-
-
Method Details
-
getIndexPackageAccess
Return the accessor to internal secrets for anIndexReader
. -
getConcurrentMergeSchedulerAccess
Return the accessor to internal secrets for anConcurrentMergeScheduler
. -
getSegmentReaderAccess
Return the accessor to internal secrets for anSegmentReader
. -
getIndexWriterAccess
Return the accessor to internal secrets for anIndexWriter
. -
getFilterInputIndexAccess
Return the accessor to internal secrets for anFilterIndexInput
. -
setIndexWriterAccess
For internal initialization only. -
setIndexPackageAccess
For internal initialization only. -
setConcurrentMergeSchedulerAccess
For internal initialization only. -
setSegmentReaderAccess
For internal initialization only. -
setFilterInputIndexAccess
For internal initialization only. -
ensureNull
-
ensureCaller
private static void ensureCaller()
-