Class Lucene80NormsProducer
- java.lang.Object
-
- org.apache.lucene.codecs.NormsProducer
-
- org.apache.lucene.codecs.lucene80.Lucene80NormsProducer
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Cloneable,Accountable
final class Lucene80NormsProducer extends NormsProducer implements java.lang.Cloneable
Reader forLucene80NormsFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classLucene80NormsProducer.DenseNormsIterator(package private) static classLucene80NormsProducer.NormsEntry(package private) static classLucene80NormsProducer.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,Lucene80NormsProducer.NormsEntry>norms-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description Lucene80NormsProducer(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, Lucene80NormsProducer.NormsEntry entry)private IndexInputgetDisiInput(FieldInfo field, Lucene80NormsProducer.NormsEntry entry)private RandomAccessInputgetDisiJumpTable(FieldInfo field, Lucene80NormsProducer.NormsEntry entry)NormsProducergetMergeInstance()Returns an instance optimized for merging.NumericDocValuesgetNorms(FieldInfo field)ReturnsNumericDocValuesfor this field.longramBytesUsed()Return the memory usage of this object in bytes.private voidreadFields(IndexInput meta, FieldInfos infos)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Field Detail
-
norms
private final java.util.Map<java.lang.Integer,Lucene80NormsProducer.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
-
Lucene80NormsProducer
Lucene80NormsProducer(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, Lucene80NormsProducer.NormsEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getDisiInput
private IndexInput getDisiInput(FieldInfo field, Lucene80NormsProducer.NormsEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getDisiJumpTable
private RandomAccessInput getDisiJumpTable(FieldInfo field, Lucene80NormsProducer.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.- 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
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
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
-
-