java.lang.Object
org.apache.lucene.codecs.NormsConsumer
org.apache.lucene.codecs.lucene90.Lucene90NormsConsumer
- All Implemented Interfaces:
Closeable,AutoCloseable
Writer for
Lucene90NormsFormat-
Field Summary
FieldsModifier and TypeFieldDescription(package private) IndexOutput(package private) final int(package private) IndexOutput -
Constructor Summary
ConstructorsConstructorDescriptionLucene90NormsConsumer(SegmentWriteState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNormsField(FieldInfo field, NormsProducer normsProducer) Writes normalization values for a field.voidclose()private intnumBytesPerValue(long min, long max) private voidwriteValues(NumericDocValues values, int numBytesPerValue, IndexOutput out) Methods inherited from class org.apache.lucene.codecs.NormsConsumer
merge, mergeNormsField
-
Field Details
-
data
IndexOutput data -
meta
IndexOutput meta -
maxDoc
final int maxDoc
-
-
Constructor Details
-
Lucene90NormsConsumer
Lucene90NormsConsumer(SegmentWriteState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) throws IOException - Throws:
IOException
-
-
Method Details
-
close
- Throws:
IOException
-
addNormsField
Description copied from class:NormsConsumerWrites normalization values for a field.- Specified by:
addNormsFieldin classNormsConsumer- Parameters:
field- field informationnormsProducer- NormsProducer of the numeric norm values- Throws:
IOException- if an I/O error occurred.
-
numBytesPerValue
private int numBytesPerValue(long min, long max) -
writeValues
private void writeValues(NumericDocValues values, int numBytesPerValue, IndexOutput out) throws IOException, AssertionError - Throws:
IOExceptionAssertionError
-