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
public class SimpleTextKnnVectorsWriter extends BufferingKnnVectorsWriter
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfinish()voidwriteField(FieldInfo fieldInfo, ByteVectorValues byteVectorValues, int maxDoc)voidwriteField(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
mapOldOrdToNewOrd, 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 Detail
-
writeField
public void writeField(FieldInfo fieldInfo, FloatVectorValues floatVectorValues, int maxDoc) throws IOException
- Specified by:
writeFieldin classBufferingKnnVectorsWriter- Throws:
IOException
-
writeField
public void writeField(FieldInfo fieldInfo, ByteVectorValues byteVectorValues, int maxDoc) throws IOException
- Specified by:
writeFieldin classBufferingKnnVectorsWriter- Throws:
IOException
-
finish
public void finish() throws IOException- Specified by:
finishin classKnnVectorsWriter- Throws:
IOException
-
close
public void close() throws IOException- Throws:
IOException
-
-