mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
Add comment and implementation assertion for ddnode (#9333)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
98c26b56a6
commit
908b7df41d
@ -21,10 +21,14 @@ import (
|
|||||||
"github.com/milvus-io/milvus/internal/proto/commonpb"
|
"github.com/milvus-io/milvus/internal/proto/commonpb"
|
||||||
"github.com/milvus-io/milvus/internal/proto/datapb"
|
"github.com/milvus-io/milvus/internal/proto/datapb"
|
||||||
"github.com/milvus-io/milvus/internal/proto/internalpb"
|
"github.com/milvus-io/milvus/internal/proto/internalpb"
|
||||||
|
"github.com/milvus-io/milvus/internal/util/flowgraph"
|
||||||
"github.com/milvus-io/milvus/internal/util/trace"
|
"github.com/milvus-io/milvus/internal/util/trace"
|
||||||
"github.com/opentracing/opentracing-go"
|
"github.com/opentracing/opentracing-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// make sure ddNode implements flowgraph.Node
|
||||||
|
var _ flowgraph.Node = (*ddNode)(nil)
|
||||||
|
|
||||||
// ddNode filter messages from message streams.
|
// ddNode filter messages from message streams.
|
||||||
//
|
//
|
||||||
// ddNode recives all the messages from message stream dml channels, including insert messages,
|
// ddNode recives all the messages from message stream dml channels, including insert messages,
|
||||||
@ -49,10 +53,12 @@ type ddNode struct {
|
|||||||
flushedSegments []UniqueID
|
flushedSegments []UniqueID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Name returns node name, implementing flowgraph.Node
|
||||||
func (ddn *ddNode) Name() string {
|
func (ddn *ddNode) Name() string {
|
||||||
return "ddNode"
|
return "ddNode"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Operate handles input messages, implementing flowgrpah.Node
|
||||||
func (ddn *ddNode) Operate(in []Msg) []Msg {
|
func (ddn *ddNode) Operate(in []Msg) []Msg {
|
||||||
// log.Debug("DDNode Operating")
|
// log.Debug("DDNode Operating")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user