Module org.elasticsearch.server
Class ES93BFloat16FlatVectorsWriter
java.lang.Object
org.apache.lucene.codecs.KnnVectorsWriter
org.apache.lucene.codecs.hnsw.FlatVectorsWriter
org.elasticsearch.index.codec.vectors.es93.ES93BFloat16FlatVectorsWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable
public final class ES93BFloat16FlatVectorsWriter
extends org.apache.lucene.codecs.hnsw.FlatVectorsWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.codecs.KnnVectorsWriter
org.apache.lucene.codecs.KnnVectorsWriter.MergedVectorValues -
Field Summary
Fields inherited from class org.apache.lucene.codecs.hnsw.FlatVectorsWriter
vectorsScorerFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionES93BFloat16FlatVectorsWriter(org.apache.lucene.index.SegmentWriteState state, org.apache.lucene.codecs.hnsw.FlatVectorsScorer scorer) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.codecs.hnsw.FlatFieldVectorsWriter<?> addField(org.apache.lucene.index.FieldInfo fieldInfo) voidclose()voidfinish()voidflush(int maxDoc, org.apache.lucene.index.Sorter.DocMap sortMap) voidmergeOneField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState) org.apache.lucene.util.hnsw.CloseableRandomVectorScorerSuppliermergeOneFieldToIndex(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState) longMethods inherited from class org.apache.lucene.codecs.hnsw.FlatVectorsWriter
getFlatVectorScorerMethods inherited from class org.apache.lucene.codecs.KnnVectorsWriter
mapOldOrdToNewOrd, mergeMethods 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
-
Constructor Details
-
ES93BFloat16FlatVectorsWriter
public ES93BFloat16FlatVectorsWriter(org.apache.lucene.index.SegmentWriteState state, org.apache.lucene.codecs.hnsw.FlatVectorsScorer scorer) throws IOException - Throws:
IOException
-
-
Method Details
-
addField
public org.apache.lucene.codecs.hnsw.FlatFieldVectorsWriter<?> addField(org.apache.lucene.index.FieldInfo fieldInfo) throws IOException - Specified by:
addFieldin classorg.apache.lucene.codecs.hnsw.FlatVectorsWriter- Throws:
IOException
-
flush
- Specified by:
flushin classorg.apache.lucene.codecs.KnnVectorsWriter- Throws:
IOException
-
finish
- Specified by:
finishin classorg.apache.lucene.codecs.KnnVectorsWriter- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed() -
mergeOneField
public void mergeOneField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState) throws IOException - Overrides:
mergeOneFieldin classorg.apache.lucene.codecs.KnnVectorsWriter- Throws:
IOException
-
mergeOneFieldToIndex
public org.apache.lucene.util.hnsw.CloseableRandomVectorScorerSupplier mergeOneFieldToIndex(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState) throws IOException - Specified by:
mergeOneFieldToIndexin classorg.apache.lucene.codecs.hnsw.FlatVectorsWriter- Throws:
IOException
-
close
- Throws:
IOException
-