...
- Add new interface in segment
Code Block |
---|
// based on result.Offset, get vector raw data from fieldInfo,
// then fill vector raw data into result
func (s *Segment) fillRetrieveResults(result *segcorepb.RetrieveResults, fieldInfo *VectorFieldInfo) error |
- Add new interface in segment_loader
Code Block |
---|
// load vector field's data from info.fieldBinlog, save the raw data into info.rawData func (loader *segmentLoader) loadSegmentVectorFieldsDataloadSegmentVectorFieldData(info *VectorFieldInfo) error { |
...
- Add new interface in query_collection
Code Block |
---|
// loadFor vector fields'output fields, load raw data, andfrom fillfieldBinlog inif resultneeded, if // get vector 1).raw resultdata is not empty // 2). output field contain vector // 3). vector field has not been loaded into memoryvia result.Offset from *VectorfieldInfo, then // fill vector raw data into result func (q *queryCollection) fillVectorOutputFieldsIfNeededfillVectorFieldsData(msg queryMsg, segment *Segment, result *segcorepb.RetrieveResults) error |
...