Class Lucene90NormsProducer
- java.lang.Object
-
- org.apache.lucene.codecs.NormsProducer
-
- org.apache.lucene.codecs.lucene90.Lucene90NormsProducer
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Cloneable
final class Lucene90NormsProducer extends NormsProducer implements java.lang.Cloneable
Reader forLucene90NormsFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classLucene90NormsProducer.DenseNormsIterator(package private) static classLucene90NormsProducer.NormsEntry(package private) static classLucene90NormsProducer.SparseNormsIterator
-
Field Summary
Fields Modifier and Type Field Description private IndexInputdataprivate java.util.Map<java.lang.Integer,RandomAccessInput>dataInputsprivate java.util.Map<java.lang.Integer,IndexInput>disiInputsprivate java.util.Map<java.lang.Integer,RandomAccessInput>disiJumpTablesprivate intmaxDocprivate booleanmergingprivate java.util.Map<java.lang.Integer,Lucene90NormsProducer.NormsEntry>norms
-
Constructor Summary
Constructors Constructor Description Lucene90NormsProducer(SegmentReadState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIntegrity()Checks 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)NormsProducergetMergeInstance()Returns an instance optimized for merging.NumericDocValuesgetNorms(FieldInfo field)ReturnsNumericDocValuesfor this field.private voidreadFields(IndexInput meta, FieldInfos infos)java.lang.StringtoString()
-
-
-
Field Detail
-
norms
private final java.util.Map<java.lang.Integer,Lucene90NormsProducer.NormsEntry> norms
-
maxDoc
private final int maxDoc
-
data
private IndexInput data
-
merging
private boolean merging
-
disiInputs
private java.util.Map<java.lang.Integer,IndexInput> disiInputs
-
disiJumpTables
private java.util.Map<java.lang.Integer,RandomAccessInput> disiJumpTables
-
dataInputs
private java.util.Map<java.lang.Integer,RandomAccessInput> dataInputs
-
-
Constructor Detail
-
Lucene90NormsProducer
Lucene90NormsProducer(SegmentReadState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getMergeInstance
public NormsProducer 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
private void readFields(IndexInput meta, FieldInfos infos) throws java.io.IOException
- Throws:
java.io.IOException
-
getDataInput
private RandomAccessInput getDataInput(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getDisiInput
private IndexInput getDisiInput(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getDisiJumpTable
private RandomAccessInput getDisiJumpTable(FieldInfo field, Lucene90NormsProducer.NormsEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getNorms
public NumericDocValues getNorms(FieldInfo field) throws java.io.IOException
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:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
checkIntegrity
public void checkIntegrity() throws java.io.IOExceptionDescription 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:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-