milvus/internal/reader/flow_graph_schema_update_node.go
FluorineDog e7dd30a884 Add framework of ExecExprVisitor
Signed-off-by: FluorineDog <guilin.gou@zilliz.com>
2020-11-18 17:32:52 +08:00

30 lines
649 B
Go

package reader
import "github.com/zilliztech/milvus-distributed/internal/util/flowgraph"
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 {
maxQueueLength := flowgraph.Params.FlowGraphMaxQueueLength()
maxParallelism := flowgraph.Params.FlowGraphMaxParallelism()
baseNode := BaseNode{}
baseNode.SetMaxQueueLength(maxQueueLength)
baseNode.SetMaxParallelism(maxParallelism)
return &schemaUpdateNode{
BaseNode: baseNode,
}
}