mirror of https://github.com/milvus-io/milvus.git
28 lines
503 B
Go
28 lines
503 B
Go
package reader
|
|
|
|
type deleteNode struct {
|
|
BaseNode
|
|
deleteMsg deleteMsg
|
|
}
|
|
|
|
func (dNode *deleteNode) Name() string {
|
|
return "dNode"
|
|
}
|
|
|
|
func (dNode *deleteNode) Operate(in []*Msg) []*Msg {
|
|
return in
|
|
}
|
|
|
|
func newDeleteNode() *deleteNode {
|
|
maxQueueLength := Params.flowGraphMaxQueueLength()
|
|
maxParallelism := Params.flowGraphMaxParallelism()
|
|
|
|
baseNode := BaseNode{}
|
|
baseNode.SetMaxQueueLength(maxQueueLength)
|
|
baseNode.SetMaxParallelism(maxParallelism)
|
|
|
|
return &deleteNode{
|
|
BaseNode: baseNode,
|
|
}
|
|
}
|