Class SimpleTextKnnVectorsWriter
java.lang.Object
org.apache.lucene.codecs.KnnVectorsWriter
org.apache.lucene.codecs.BufferingKnnVectorsWriter
org.apache.lucene.codecs.simpletext.SimpleTextKnnVectorsWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Accountable
Writes vector-valued fields in a plain text format
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.codecs.KnnVectorsWriter
KnnVectorsWriter.MergedVectorValues
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
finish()
void
writeField
(FieldInfo fieldInfo, ByteVectorValues byteVectorValues, int maxDoc) void
writeField
(FieldInfo fieldInfo, FloatVectorValues floatVectorValues, int maxDoc) Methods inherited from class org.apache.lucene.codecs.BufferingKnnVectorsWriter
addField, flush, mergeOneField, ramBytesUsed
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
-
Method Details
-
writeField
public void writeField(FieldInfo fieldInfo, FloatVectorValues floatVectorValues, int maxDoc) throws IOException - Specified by:
writeField
in classBufferingKnnVectorsWriter
- Throws:
IOException
-
writeField
public void writeField(FieldInfo fieldInfo, ByteVectorValues byteVectorValues, int maxDoc) throws IOException - Specified by:
writeField
in classBufferingKnnVectorsWriter
- Throws:
IOException
-
finish
- Specified by:
finish
in classKnnVectorsWriter
- Throws:
IOException
-
close
- Throws:
IOException
-