java.lang.Object
org.apache.lucene.index.SegmentDocValues
Manages the
DocValuesProducer
held by SegmentReader
and keeps track of their
reference counting.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Decrement the reference count of the givenDocValuesProducer
generations.(package private) DocValuesProducer
getDocValuesProducer
(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos) Returns theDocValuesProducer
for the given generation.private RefCount<DocValuesProducer>
newDocValuesProducer
(SegmentCommitInfo si, Directory dir, Long gen, FieldInfos infos)
-
Field Details
-
genDVProducers
-
-
Constructor Details
-
SegmentDocValues
SegmentDocValues()
-
-
Method Details
-
newDocValuesProducer
private RefCount<DocValuesProducer> newDocValuesProducer(SegmentCommitInfo si, Directory dir, Long gen, FieldInfos infos) throws IOException - Throws:
IOException
-
getDocValuesProducer
DocValuesProducer getDocValuesProducer(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos) throws IOException Returns theDocValuesProducer
for the given generation.- Throws:
IOException
-
decRef
Decrement the reference count of the givenDocValuesProducer
generations.- Throws:
IOException
-