bigsheeper 48821690b3 Rename Service interface to Component, and update segmentLoad strategy
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2021-01-18 10:38:41 +08:00

23 lines
921 B
Go

package queryserviceimpl
import (
"github.com/zilliztech/milvus-distributed/internal/proto/querypb"
"github.com/zilliztech/milvus-distributed/internal/util/typeutil"
)
type ServiceBase = typeutil.Component
type Interface interface {
ServiceBase
RegisterNode(req querypb.RegisterNodeRequest) (querypb.RegisterNodeResponse, error)
ShowCollections(req querypb.ShowCollectionRequest) (querypb.ShowCollectionResponse, error)
LoadCollection(req querypb.LoadCollectionRequest) error
ReleaseCollection(req querypb.ReleaseCollectionRequest) error
ShowPartitions(req querypb.ShowPartitionRequest) (querypb.ShowPartitionResponse, error)
LoadPartitions(req querypb.LoadPartitionRequest) error
ReleasePartitions(req querypb.ReleasePartitionRequest) error
CreateQueryChannel() (querypb.CreateQueryChannelResponse, error)
GetPartitionStates(req querypb.PartitionStatesRequest) (querypb.PartitionStatesResponse, error)
}