java.lang.Object
org.apache.lucene.codecs.NormsProducer
org.apache.lucene.codecs.lucene90.Lucene90NormsProducer
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
Reader for
Lucene90NormsFormat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IndexInput
private Map
<Integer, RandomAccessInput> private Map
<Integer, IndexInput> private Map
<Integer, RandomAccessInput> private final int
private boolean
private final Map
<Integer, Lucene90NormsProducer.NormsEntry> -
Constructor Summary
ConstructorsConstructorDescriptionLucene90NormsProducer
(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks consistency of this producervoid
close()
private RandomAccessInput
getDataInput
(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) private IndexInput
getDisiInput
(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) private RandomAccessInput
getDisiJumpTable
(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) Returns an instance optimized for merging.ReturnsNumericDocValues
for this field.private void
readFields
(IndexInput meta, FieldInfos infos) toString()
-
Field Details
-
norms
-
maxDoc
private final int maxDoc -
data
-
merging
private boolean merging -
disiInputs
-
disiJumpTables
-
dataInputs
-
-
Constructor Details
-
Lucene90NormsProducer
Lucene90NormsProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) throws IOException - Throws:
IOException
-
-
Method Details
-
getMergeInstance
Description copied from class:NormsProducer
Returns an instance optimized for merging. This instance may only be used from the thread that acquires it.The default implementation returns
this
- Overrides:
getMergeInstance
in classNormsProducer
-
readFields
- Throws:
IOException
-
getDataInput
private RandomAccessInput getDataInput(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) throws IOException - Throws:
IOException
-
getDisiInput
private IndexInput getDisiInput(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) throws IOException - Throws:
IOException
-
getDisiJumpTable
private RandomAccessInput getDisiJumpTable(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) throws IOException - Throws:
IOException
-
getNorms
Description copied from class:NormsProducer
ReturnsNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the given field doesn't have norms enabled on itsFieldInfo
. The return value is nevernull
.- Specified by:
getNorms
in classNormsProducer
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
checkIntegrity
Description copied from class:NormsProducer
Checks consistency of this producerNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrity
in classNormsProducer
- Throws:
IOException
-
toString
-