Module org.apache.lucene.core
Class Lucene99FlatVectorsWriter.FieldWriter<T>
java.lang.Object
org.apache.lucene.codecs.KnnFieldVectorsWriter<T>
org.apache.lucene.codecs.hnsw.FlatFieldVectorsWriter<T>
org.apache.lucene.codecs.lucene99.Lucene99FlatVectorsWriter.FieldWriter<T>
- All Implemented Interfaces:
Accountable
- Enclosing class:
Lucene99FlatVectorsWriter
private abstract static class Lucene99FlatVectorsWriter.FieldWriter<T>
extends FlatFieldVectorsWriter<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final DocsWithFieldSet
private final FieldInfo
private int
private static final long
Fields inherited from class org.apache.lucene.codecs.hnsw.FlatFieldVectorsWriter
indexingDelegate
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add new docID with its vector value to the given field for indexing.(package private) static Lucene99FlatVectorsWriter.FieldWriter
<?> create
(FieldInfo fieldInfo, KnnFieldVectorsWriter<?> indexWriter) long
Return the memory usage of this object in bytes.Methods inherited from class org.apache.lucene.codecs.KnnFieldVectorsWriter
copyValue
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
-
SHALLOW_RAM_BYTES_USED
private static final long SHALLOW_RAM_BYTES_USED -
fieldInfo
-
dim
private final int dim -
docsWithField
-
vectors
-
lastDocID
private int lastDocID
-
-
Constructor Details
-
FieldWriter
FieldWriter(FieldInfo fieldInfo, KnnFieldVectorsWriter<T> indexWriter)
-
-
Method Details
-
create
static Lucene99FlatVectorsWriter.FieldWriter<?> create(FieldInfo fieldInfo, KnnFieldVectorsWriter<?> indexWriter) -
addValue
Description copied from class:KnnFieldVectorsWriter
Add new docID with its vector value to the given field for indexing. Doc IDs must be added in increasing order.- Specified by:
addValue
in classKnnFieldVectorsWriter<T>
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.
-