Module org.apache.lucene.core
Class PerFieldKnnVectorsFormat.FieldsWriter
java.lang.Object
org.apache.lucene.codecs.KnnVectorsWriter
org.apache.lucene.codecs.perfield.PerFieldKnnVectorsFormat.FieldsWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Accountable
- Enclosing class:
PerFieldKnnVectorsFormat
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.codecs.KnnVectorsWriter
KnnVectorsWriter.MergedVectorValues
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<KnnVectorsFormat, PerFieldKnnVectorsFormat.WriterAndSuffix> private final SegmentWriteState
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd new field for indexingvoid
close()
void
finish()
Called once at the end before closevoid
flush
(int maxDoc, Sorter.DocMap sortMap) Flush all buffered data on disk *private KnnVectorsWriter
getInstance
(FieldInfo field) void
mergeOneField
(FieldInfo fieldInfo, MergeState mergeState) Write field for merginglong
Return the memory usage of this object in bytes.Methods inherited from class org.apache.lucene.codecs.KnnVectorsWriter
merge
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
formats
-
suffixes
-
segmentWriteState
-
-
Constructor Details
-
FieldsWriter
FieldsWriter(SegmentWriteState segmentWriteState)
-
-
Method Details
-
addField
Description copied from class:KnnVectorsWriter
Add new field for indexing- Specified by:
addField
in classKnnVectorsWriter
- Throws:
IOException
-
flush
Description copied from class:KnnVectorsWriter
Flush all buffered data on disk *- Specified by:
flush
in classKnnVectorsWriter
- Throws:
IOException
-
mergeOneField
Description copied from class:KnnVectorsWriter
Write field for merging- Overrides:
mergeOneField
in classKnnVectorsWriter
- Throws:
IOException
-
finish
Description copied from class:KnnVectorsWriter
Called once at the end before close- Specified by:
finish
in classKnnVectorsWriter
- Throws:
IOException
-
close
- Throws:
IOException
-
getInstance
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.
-