Class Lucene70NormsProducer
java.lang.Object
org.apache.lucene.codecs.NormsProducer
org.apache.lucene.codecs.lucene70.Lucene70NormsProducer
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable,Accountable
Reader for
Lucene70NormsFormat-
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 Map<Integer, RandomAccessInput> private Map<Integer, IndexInput> private final intprivate booleanprivate final Map<Integer, Lucene70NormsProducer.NormsEntry> Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionLucene70NormsProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks consistency of this producervoidclose()private RandomAccessInputgetDataInput(FieldInfo field, Lucene70NormsProducer.NormsEntry entry) private IndexInputgetDisiInput(FieldInfo field, Lucene70NormsProducer.NormsEntry entry) private IndexInputgetDisiInput2(FieldInfo field, Lucene70NormsProducer.NormsEntry entry) Returns an instance optimized for merging.ReturnsNumericDocValuesfor this field.longReturn the memory usage of this object in bytes.private voidreadFields(IndexInput meta, FieldInfos infos) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
norms
-
maxDoc
private final int maxDoc -
data
-
merging
private boolean merging -
disiInputs
-
dataInputs
-
-
Constructor Details
-
Lucene70NormsProducer
Lucene70NormsProducer(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, Lucene70NormsProducer.NormsEntry entry) throws IOException - Throws:
IOException
-
getDisiInput
private IndexInput getDisiInput(FieldInfo field, Lucene70NormsProducer.NormsEntry entry) throws IOException - Throws:
IOException
-
getDisiInput2
private IndexInput getDisiInput2(FieldInfo field, Lucene70NormsProducer.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.- Specified by:
getNormsin classNormsProducer- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
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
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
-