flow_graph_schema_update_node.go 649 字节
Newer Older
1 2
package reader

N
neza2017 已提交
3 4
import "github.com/zilliztech/milvus-distributed/internal/util/flowgraph"

5 6 7 8 9 10 11 12 13 14 15 16 17 18
type schemaUpdateNode struct {
	BaseNode
	schemaUpdateMsg schemaUpdateMsg
}

func (suNode *schemaUpdateNode) Name() string {
	return "suNode"
}

func (suNode *schemaUpdateNode) Operate(in []*Msg) []*Msg {
	return in
}

func newSchemaUpdateNode() *schemaUpdateNode {
N
neza2017 已提交
19 20
	maxQueueLength := flowgraph.Params.FlowGraphMaxQueueLength()
	maxParallelism := flowgraph.Params.FlowGraphMaxParallelism()
F
FluorineDog 已提交
21

22 23 24 25 26 27 28 29
	baseNode := BaseNode{}
	baseNode.SetMaxQueueLength(maxQueueLength)
	baseNode.SetMaxParallelism(maxParallelism)

	return &schemaUpdateNode{
		BaseNode: baseNode,
	}
}