final class SegmentDocValues
extends java.lang.Object
DocValuesProducer
held by SegmentReader
and
keeps track of their reference counting.Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Long,RefCount<DocValuesProducer>> |
genDVProducers |
Constructor and Description |
---|
SegmentDocValues() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
decRef(java.util.List<java.lang.Long> dvProducersGens)
Decrement the reference count of the given
DocValuesProducer
generations. |
(package private) DocValuesProducer |
getDocValuesProducer(long gen,
SegmentCommitInfo si,
Directory dir,
FieldInfos infos)
Returns the
DocValuesProducer for the given generation. |
private RefCount<DocValuesProducer> |
newDocValuesProducer(SegmentCommitInfo si,
Directory dir,
java.lang.Long gen,
FieldInfos infos) |
private final java.util.Map<java.lang.Long,RefCount<DocValuesProducer>> genDVProducers
private RefCount<DocValuesProducer> newDocValuesProducer(SegmentCommitInfo si, Directory dir, java.lang.Long gen, FieldInfos infos) throws java.io.IOException
java.io.IOException
DocValuesProducer getDocValuesProducer(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos) throws java.io.IOException
DocValuesProducer
for the given generation.java.io.IOException
void decRef(java.util.List<java.lang.Long> dvProducersGens) throws java.io.IOException
DocValuesProducer
generations.java.io.IOException