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 IndexInputprivate IntObjectHashMap<RandomAccessInput> private IntObjectHashMap<IndexInput> private IntObjectHashMap<RandomAccessInput> private final intprivate booleanprivate final IntObjectHashMap<Lucene90NormsProducer.NormsEntry> -
Constructor Summary
ConstructorsConstructorDescriptionLucene90NormsProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks consistency of this producervoidclose()private RandomAccessInputgetDataInput(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) private IndexInputgetDisiInput(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) private RandomAccessInputgetDisiJumpTable(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) Returns an instance optimized for merging.ReturnsNumericDocValuesfor this field.private voidreadFields(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:NormsProducerReturns an instance optimized for merging. This instance may only be used from the thread that acquires it.The default implementation returns
this- Overrides:
getMergeInstancein 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:NormsProducerReturnsNumericDocValuesfor 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:
getNormsin classNormsProducer- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
checkIntegrity
Description copied from class:NormsProducerChecks 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:
checkIntegrityin classNormsProducer- Throws:
IOException
-
toString
-