- java.lang.Object
-
- org.apache.lucene.index.SegmentDocValues
-
final class SegmentDocValues extends java.lang.Object
Manages theDocValuesProducer
held bySegmentReader
and keeps track of their reference counting.
-
-
Field Summary
Fields Modifier and Type Field Description private LongObjectHashMap<RefCount<DocValuesProducer>>
genDVProducers
-
Constructor Summary
Constructors Constructor Description SegmentDocValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
decRef(LongArrayList dvProducersGens)
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 Detail
-
genDVProducers
private final LongObjectHashMap<RefCount<DocValuesProducer>> genDVProducers
-
-
Method Detail
-
newDocValuesProducer
private RefCount<DocValuesProducer> newDocValuesProducer(SegmentCommitInfo si, Directory dir, long gen, FieldInfos infos) throws java.io.IOException
- Throws:
java.io.IOException
-
getDocValuesProducer
DocValuesProducer getDocValuesProducer(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos) throws java.io.IOException
Returns theDocValuesProducer
for the given generation.- Throws:
java.io.IOException
-
decRef
void decRef(LongArrayList dvProducersGens) throws java.io.IOException
Decrement the reference count of the givenDocValuesProducer
generations.- Throws:
java.io.IOException
-
-