[skip e2e] Add comment for internal/storage.PayloadWriter (#13993)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
pull/14008/head
shaoyue 2021-12-22 19:33:39 +08:00 committed by GitHub
parent ec91866a5c
commit cd410c6069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ func NewPayloadWriter(colType schemapb.DataType) (*PayloadWriter, error) {
return &PayloadWriter{payloadWriterPtr: w, colType: colType}, nil
}
// AddDataToPayload adds @msgs into payload, if @msgs is vector, dimension should be specified by @dim
func (w *PayloadWriter) AddDataToPayload(msgs interface{}, dim ...int) error {
switch len(dim) {
case 0: