- 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 java.util.Map<java.lang.Long,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(java.util.List<java.lang.Long> 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, java.lang.Long gen, FieldInfos infos)
-
-
-
Field Detail
-
genDVProducers
private final java.util.Map<java.lang.Long,RefCount<DocValuesProducer>> genDVProducers
-
-
Method Detail
-
newDocValuesProducer
private RefCount<DocValuesProducer> newDocValuesProducer(SegmentCommitInfo si, Directory dir, java.lang.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(java.util.List<java.lang.Long> dvProducersGens) throws java.io.IOException
Decrement the reference count of the givenDocValuesProducer
generations.- Throws:
java.io.IOException
-
-