Module org.apache.lucene.codecs
Class SimpleTextKnnVectorsFormat
java.lang.Object
org.apache.lucene.codecs.KnnVectorsFormat
org.apache.lucene.codecs.simpletext.SimpleTextKnnVectorsFormat
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
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
FieldsModifier and TypeFieldDescription(package private) static final StringExtension of vectors index file(package private) static final StringExtension of vectors data fileFields inherited from class org.apache.lucene.codecs.KnnVectorsFormat
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfieldsReader(SegmentReadState state) Returns aKnnVectorsReaderto read the vectors from the index.fieldsWriter(SegmentWriteState state) Returns aKnnVectorsWriterto write the vectors to the index.Methods inherited from class org.apache.lucene.codecs.KnnVectorsFormat
forName, getName
-
Field Details
-
VECTOR_EXTENSION
Extension of vectors data file- See Also:
-
META_EXTENSION
Extension of vectors index file- See Also:
-
-
Constructor Details
-
SimpleTextKnnVectorsFormat
public SimpleTextKnnVectorsFormat()
-
-
Method Details
-
fieldsWriter
Description copied from class:KnnVectorsFormatReturns aKnnVectorsWriterto write the vectors to the index.- Specified by:
fieldsWriterin classKnnVectorsFormat- Throws:
IOException
-
fieldsReader
Description copied from class:KnnVectorsFormatReturns aKnnVectorsReaderto read the vectors from the index.- Specified by:
fieldsReaderin classKnnVectorsFormat- Throws:
IOException
-