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 intprivate final DocsWithFieldSetprivate final FieldInfoprivate intprivate static final longFields inherited from class org.apache.lucene.codecs.hnsw.FlatFieldVectorsWriter
indexingDelegateFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd new docID with its vector value to the given field for indexing.(package private) static Lucene99FlatVectorsWriter.FieldWriter<?> create(FieldInfo fieldInfo, KnnFieldVectorsWriter<?> indexWriter) longReturn the memory usage of this object in bytes.Methods inherited from class org.apache.lucene.codecs.KnnFieldVectorsWriter
copyValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:KnnFieldVectorsWriterAdd new docID with its vector value to the given field for indexing. Doc IDs must be added in increasing order.- Specified by:
addValuein classKnnFieldVectorsWriter<T>- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.
-