mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
25 lines
398 B
Go
25 lines
398 B
Go
package reader
|
|
|
|
type insertNode struct {
|
|
BaseNode
|
|
insertMsg insertMsg
|
|
}
|
|
|
|
func (iNode *insertNode) Name() string {
|
|
return "iNode"
|
|
}
|
|
|
|
func (iNode *insertNode) Operate(in []*Msg) []*Msg {
|
|
return in
|
|
}
|
|
|
|
func newInsertNode() *insertNode {
|
|
baseNode := BaseNode{}
|
|
baseNode.SetMaxQueueLength(maxQueueLength)
|
|
baseNode.SetMaxParallelism(maxParallelism)
|
|
|
|
return &insertNode{
|
|
BaseNode: baseNode,
|
|
}
|
|
}
|