代码拉取完成,页面将自动刷新
package base
type RequestUnion struct {
word string
}
func (ru *RequestUnion) SetInner(val string) {
ru.word = val
}
type VecScanResponse struct {
ColBatch []VecValue
}
// columnar value batch: single column set
type VecValue struct {
ColId uint32
ColType int32
Values [][]uint32
}
func (vsr *VecScanResponse) Combine(oth VecScanResponse) error {
if vsr != nil {
//vsr.ColBatch = append(vsr.ColBatch, oth.ColBatch...)
vsrColNum := len(vsr.ColBatch)
othColNum := len(oth.ColBatch)
maxColNum := vsrColNum
if maxColNum < othColNum {
maxColNum = othColNum
}
for i := 0; i < maxColNum; i++ {
if maxColNum == vsrColNum {
if vsr.ColBatch[i].ColId == oth.ColBatch[i].ColId {
vsr.combineVecValue(oth.ColBatch, i)
} else {
}
} else {
}
}
//vsr.IntentRows = append(vsr.IntentRows, otherVSR.IntentRows...)
//if err := vsr.ResponseHeader.combine(otherVSR.Header()); err != nil {
// return err
//}
}
return nil
}
func (vsr *VecScanResponse) combineVecValue(colBatch []VecValue, i int) {
for _, v := range colBatch[i].Values {
vsr.ColBatch[i].Values = append(vsr.ColBatch[i].Values, v)
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。