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.StringMETA_EXTENSIONExtension of vectors index file(package private) static java.lang.StringVECTOR_EXTENSIONExtension 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 KnnVectorsReaderfieldsReader(SegmentReadState state)Returns aKnnVectorsReaderto read the vectors from the index.KnnVectorsWriterfieldsWriter(SegmentWriteState state)Returns aKnnVectorsWriterto 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:KnnVectorsFormatReturns aKnnVectorsWriterto write the vectors to the index.- Specified by:
fieldsWriterin classKnnVectorsFormat- Throws:
java.io.IOException
-
fieldsReader
public KnnVectorsReader fieldsReader(SegmentReadState state) throws java.io.IOException
Description copied from class:KnnVectorsFormatReturns aKnnVectorsReaderto read the vectors from the index.- Specified by:
fieldsReaderin classKnnVectorsFormat- Throws:
java.io.IOException
-
-