Class PerFieldKnnVectorsFormat.FieldsWriter
java.lang.Object
org.apache.lucene.codecs.KnnVectorsWriter
org.apache.lucene.codecs.perfield.PerFieldKnnVectorsFormat.FieldsWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- PerFieldKnnVectorsFormat
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<KnnVectorsFormat,PerFieldKnnVectorsFormat.WriterAndSuffix> private final SegmentWriteState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfinish()Called once at the end before closeprivate KnnVectorsWritergetInstance(FieldInfo field) final voidmerge(MergeState mergeState) Merges the segment vectors for all fields.voidwriteField(FieldInfo fieldInfo, KnnVectorsReader knnVectorsReader) Write all values contained in the provided reader
-
Field Details
-
formats
-
suffixes
-
segmentWriteState
-
-
Constructor Details
-
FieldsWriter
FieldsWriter(SegmentWriteState segmentWriteState)
-
-
Method Details
-
writeField
Description copied from class:KnnVectorsWriterWrite all values contained in the provided reader- Specified by:
writeFieldin classKnnVectorsWriter- Throws:
IOException
-
merge
Description copied from class:KnnVectorsWriterMerges the segment vectors for all fields. This default implementation delegates toKnnVectorsWriter.writeField(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.KnnVectorsReader), passing aKnnVectorsReaderthat combines the vector values and ignores deleted documents.- Overrides:
mergein classKnnVectorsWriter- Throws:
IOException
-
finish
Description copied from class:KnnVectorsWriterCalled once at the end before close- Specified by:
finishin classKnnVectorsWriter- Throws:
IOException
-
close
- Throws:
IOException
-
getInstance
- Throws:
IOException
-