Class SimpleTextKnnVectorsWriter
- java.lang.Object
-
- org.apache.lucene.codecs.KnnVectorsWriter
-
- org.apache.lucene.index.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 void
close()
void
finish()
void
writeField(FieldInfo fieldInfo, KnnVectorsReader knnVectorsReader, int maxDoc)
-
Methods inherited from class org.apache.lucene.index.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 Detail
-
writeField
public void writeField(FieldInfo fieldInfo, KnnVectorsReader knnVectorsReader, int maxDoc) throws IOException
- Specified by:
writeField
in classBufferingKnnVectorsWriter
- Throws:
IOException
-
finish
public void finish() throws IOException
- Specified by:
finish
in classKnnVectorsWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Throws:
IOException
-
-