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 class
Lucene80NormsProducer.DenseNormsIterator
(package private) static class
Lucene80NormsProducer.NormsEntry
(package private) static class
Lucene80NormsProducer.SparseNormsIterator
-
Field Summary
Fields Modifier and Type Field Description private IndexInput
data
private java.util.Map<java.lang.Integer,RandomAccessInput>
dataInputs
private java.util.Map<java.lang.Integer,IndexInput>
disiInputs
private java.util.Map<java.lang.Integer,RandomAccessInput>
disiJumpTables
private int
maxDoc
private boolean
merging
private java.util.Map<java.lang.Integer,Lucene80NormsProducer.NormsEntry>
norms
-
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 void
checkIntegrity()
Checks consistency of this producervoid
close()
private RandomAccessInput
getDataInput(FieldInfo field, Lucene80NormsProducer.NormsEntry entry)
private IndexInput
getDisiInput(FieldInfo field, Lucene80NormsProducer.NormsEntry entry)
private RandomAccessInput
getDisiJumpTable(FieldInfo field, Lucene80NormsProducer.NormsEntry entry)
NormsProducer
getMergeInstance()
Returns an instance optimized for merging.NumericDocValues
getNorms(FieldInfo field)
ReturnsNumericDocValues
for this field.long
ramBytesUsed()
Return the memory usage of this object in bytes.private void
readFields(IndexInput meta, FieldInfos infos)
java.lang.String
toString()
-
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: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
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:NormsProducer
ReturnsNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getNorms
in classNormsProducer
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsed
in interfaceAccountable
-
checkIntegrity
public void checkIntegrity() throws java.io.IOException
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:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-