final class Lucene80NormsProducer extends NormsProducer implements java.lang.Cloneable
Lucene80NormsFormat| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
Lucene80NormsProducer.DenseNormsIterator |
(package private) static class |
Lucene80NormsProducer.NormsEntry |
(package private) static class |
Lucene80NormsProducer.SparseNormsIterator |
| Modifier and Type | Field and 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 and Description |
|---|
Lucene80NormsProducer(SegmentReadState state,
java.lang.String dataCodec,
java.lang.String dataExtension,
java.lang.String metaCodec,
java.lang.String metaExtension) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIntegrity()
Checks consistency of this producer
|
void |
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)
Returns
NumericDocValues 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildResourcesprivate final java.util.Map<java.lang.Integer,Lucene80NormsProducer.NormsEntry> norms
private final int maxDoc
private IndexInput data
private boolean merging
private java.util.Map<java.lang.Integer,IndexInput> disiInputs
private java.util.Map<java.lang.Integer,RandomAccessInput> disiJumpTables
private java.util.Map<java.lang.Integer,RandomAccessInput> dataInputs
Lucene80NormsProducer(SegmentReadState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension) throws java.io.IOException
java.io.IOExceptionpublic NormsProducer getMergeInstance()
NormsProducer
The default implementation returns this
getMergeInstance in class NormsProducerprivate void readFields(IndexInput meta, FieldInfos infos) throws java.io.IOException
java.io.IOExceptionprivate RandomAccessInput getDataInput(FieldInfo field, Lucene80NormsProducer.NormsEntry entry) throws java.io.IOException
java.io.IOExceptionprivate IndexInput getDisiInput(FieldInfo field, Lucene80NormsProducer.NormsEntry entry) throws java.io.IOException
java.io.IOExceptionprivate RandomAccessInput getDisiJumpTable(FieldInfo field, Lucene80NormsProducer.NormsEntry entry) throws java.io.IOException
java.io.IOExceptionpublic NumericDocValues getNorms(FieldInfo field) throws java.io.IOException
NormsProducerNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNorms in class NormsProducerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic void checkIntegrity()
throws java.io.IOException
NormsProducerNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity in class NormsProducerjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object