Package org.apache.lucene.index
Class SegmentDocValues
- java.lang.Object
-
- org.apache.lucene.index.SegmentDocValues
-
final class SegmentDocValues extends java.lang.ObjectManages theDocValuesProducerheld bySegmentReaderand 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) voiddecRef(java.util.List<java.lang.Long> dvProducersGens)Decrement the reference count of the givenDocValuesProducergenerations.(package private) DocValuesProducergetDocValuesProducer(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos)Returns theDocValuesProducerfor 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 theDocValuesProducerfor the given generation.- Throws:
java.io.IOException
-
decRef
void decRef(java.util.List<java.lang.Long> dvProducersGens) throws java.io.IOExceptionDecrement the reference count of the givenDocValuesProducergenerations.- Throws:
java.io.IOException
-
-