Class SimpleTextKnnVectorsFormat
- java.lang.Object
-
- org.apache.lucene.codecs.KnnVectorsFormat
-
- org.apache.lucene.codecs.simpletext.SimpleTextKnnVectorsFormat
-
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
public final class SimpleTextKnnVectorsFormat extends KnnVectorsFormat
For debugging, curiosity, transparency only!! Do not use this codec in production.This codec stores all data in a single human-readable text file (_N.vec). You can view this in any text editor, and even edit it to alter your index.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
META_EXTENSION
Extension of vectors index file(package private) static java.lang.String
VECTOR_EXTENSION
Extension of vectors data file-
Fields inherited from class org.apache.lucene.codecs.KnnVectorsFormat
EMPTY
-
-
Constructor Summary
Constructors Constructor Description SimpleTextKnnVectorsFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KnnVectorsReader
fieldsReader(SegmentReadState state)
Returns aKnnVectorsReader
to read the vectors from the index.KnnVectorsWriter
fieldsWriter(SegmentWriteState state)
Returns aKnnVectorsWriter
to write the vectors to the index.-
Methods inherited from class org.apache.lucene.codecs.KnnVectorsFormat
forName, getName
-
-
-
-
Field Detail
-
VECTOR_EXTENSION
static final java.lang.String VECTOR_EXTENSION
Extension of vectors data file- See Also:
- Constant Field Values
-
META_EXTENSION
static final java.lang.String META_EXTENSION
Extension of vectors index file- See Also:
- Constant Field Values
-
-
Method Detail
-
fieldsWriter
public KnnVectorsWriter fieldsWriter(SegmentWriteState state) throws java.io.IOException
Description copied from class:KnnVectorsFormat
Returns aKnnVectorsWriter
to write the vectors to the index.- Specified by:
fieldsWriter
in classKnnVectorsFormat
- Throws:
java.io.IOException
-
fieldsReader
public KnnVectorsReader fieldsReader(SegmentReadState state) throws java.io.IOException
Description copied from class:KnnVectorsFormat
Returns aKnnVectorsReader
to read the vectors from the index.- Specified by:
fieldsReader
in classKnnVectorsFormat
- Throws:
java.io.IOException
-
-