Package org.apache.lucene.index
Class VectorValuesConsumer
java.lang.Object
org.apache.lucene.index.VectorValuesConsumer
Streams vector values for indexing to the given codec's vectors writer. The codec's vectors
writer is responsible for buffering and processing vectors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Accountable
private final Codec
private final Directory
private final InfoStream
private final SegmentInfo
private KnnVectorsWriter
-
Constructor Summary
ConstructorsConstructorDescriptionVectorValuesConsumer
(Codec codec, Directory directory, SegmentInfo segmentInfo, InfoStream infoStream) -
Method Summary
Modifier and TypeMethodDescription(package private) void
abort()
(package private) void
flush
(SegmentWriteState state, Sorter.DocMap sortMap) private void
initKnnVectorsWriter
(String fieldName)
-
Field Details
-
codec
-
directory
-
segmentInfo
-
infoStream
-
accountable
-
writer
-
-
Constructor Details
-
VectorValuesConsumer
VectorValuesConsumer(Codec codec, Directory directory, SegmentInfo segmentInfo, InfoStream infoStream)
-
-
Method Details
-
initKnnVectorsWriter
- Throws:
IOException
-
addField
- Throws:
IOException
-
flush
- Throws:
IOException
-
abort
void abort() -
getAccountable
-