mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci] Fix comment for PayloadReader (#12621)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
parent
9e70cb6ac4
commit
ffda2e5945
@ -538,7 +538,7 @@ func (r *PayloadReader) GetOneStringFromPayload(idx int) (string, error) {
|
||||
return C.GoStringN(cStr, cSize), nil
|
||||
}
|
||||
|
||||
// ,dimension, error
|
||||
// GetBinaryVectorFromPayload returns vector, dimension, error
|
||||
func (r *PayloadReader) GetBinaryVectorFromPayload() ([]byte, int, error) {
|
||||
if r.colType != schemapb.DataType_BinaryVector {
|
||||
return nil, 0, errors.New("incorrect data type")
|
||||
@ -558,7 +558,7 @@ func (r *PayloadReader) GetBinaryVectorFromPayload() ([]byte, int, error) {
|
||||
return slice, int(cDim), nil
|
||||
}
|
||||
|
||||
// ,dimension, error
|
||||
// GetFloatVectorFromPayload returns vector, dimension, error
|
||||
func (r *PayloadReader) GetFloatVectorFromPayload() ([]float32, int, error) {
|
||||
if r.colType != schemapb.DataType_FloatVector {
|
||||
return nil, 0, errors.New("incorrect data type")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user