grpcquerycoordclient

package
v0.10.3-0...-843c1f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewClient

func NewClient(ctx context.Context) (types.QueryCoordClient, error)

NewClient creates a client for QueryCoord grpc call.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the grpc client of QueryCoord.

func (*Client) ActivateChecker

func (c *Client) ActivateChecker(ctx context.Context, req *querypb.ActivateCheckerRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) CheckHealth

func (*Client) CheckQueryNodeDistribution

func (c *Client) CheckQueryNodeDistribution(ctx context.Context, req *querypb.CheckQueryNodeDistributionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) Close

func (c *Client) Close() error

Close stops QueryCoordinator's grpc client server.

func (*Client) CreateResourceGroup

func (c *Client) CreateResourceGroup(ctx context.Context, req *milvuspb.CreateResourceGroupRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) DeactivateChecker

func (c *Client) DeactivateChecker(ctx context.Context, req *querypb.DeactivateCheckerRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) DropResourceGroup

func (c *Client) DropResourceGroup(ctx context.Context, req *milvuspb.DropResourceGroupRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) GetComponentStates

func (c *Client) GetComponentStates(ctx context.Context, req *milvuspb.GetComponentStatesRequest, opts ...grpc.CallOption) (*milvuspb.ComponentStates, error)

GetComponentStates gets the component states of QueryCoord.

func (*Client) GetMetrics

GetMetrics gets the metrics information of QueryCoord.

func (*Client) GetPartitionStates

GetPartitionStates gets the states of the specified partition.

func (*Client) GetReplicas

GetReplicas gets the replicas of a certain collection.

func (*Client) GetSegmentInfo

GetSegmentInfo gets the information of the specified segment from QueryCoord.

func (*Client) GetShardLeaders

GetShardLeaders gets the shard leaders of a certain collection.

func (*Client) GetStatisticsChannel

func (c *Client) GetStatisticsChannel(ctx context.Context, req *internalpb.GetStatisticsChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)

GetStatisticsChannel gets the statistics channel of QueryCoord.

func (*Client) GetTimeTickChannel

func (c *Client) GetTimeTickChannel(ctx context.Context, req *internalpb.GetTimeTickChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)

GetTimeTickChannel gets the time tick channel of QueryCoord.

func (*Client) ListCheckers

func (*Client) ListQueryNode

func (*Client) LoadBalance

func (c *Client) LoadBalance(ctx context.Context, req *querypb.LoadBalanceRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

LoadBalance migrate the sealed segments on the source node to the dst nodes.

func (*Client) LoadCollection

func (c *Client) LoadCollection(ctx context.Context, req *querypb.LoadCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

LoadCollection loads the data of the specified collections in the QueryCoord.

func (*Client) LoadPartitions

func (c *Client) LoadPartitions(ctx context.Context, req *querypb.LoadPartitionsRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

LoadPartitions loads the data of the specified partitions in the QueryCoord.

func (*Client) ReleaseCollection

func (c *Client) ReleaseCollection(ctx context.Context, req *querypb.ReleaseCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

ReleaseCollection release the data of the specified collections in the QueryCoord.

func (*Client) ReleasePartitions

func (c *Client) ReleasePartitions(ctx context.Context, req *querypb.ReleasePartitionsRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

ReleasePartitions release the data of the specified partitions in the QueryCoord.

func (*Client) ResumeBalance

func (c *Client) ResumeBalance(ctx context.Context, req *querypb.ResumeBalanceRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) ResumeNode

func (c *Client) ResumeNode(ctx context.Context, req *querypb.ResumeNodeRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) ShowCollections

ShowCollections shows the collections in the QueryCoord.

func (*Client) ShowConfigurations

ShowConfigurations gets specified configurations para of QueryCoord

func (*Client) ShowPartitions

ShowPartitions shows the partitions in the QueryCoord.

func (*Client) SuspendBalance

func (c *Client) SuspendBalance(ctx context.Context, req *querypb.SuspendBalanceRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) SuspendNode

func (c *Client) SuspendNode(ctx context.Context, req *querypb.SuspendNodeRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) SyncNewCreatedPartition

func (c *Client) SyncNewCreatedPartition(ctx context.Context, req *querypb.SyncNewCreatedPartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

SyncNewCreatedPartition notifies QueryCoord to sync new created partition if collection is loaded.

func (*Client) TransferChannel

func (c *Client) TransferChannel(ctx context.Context, req *querypb.TransferChannelRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) TransferNode

func (c *Client) TransferNode(ctx context.Context, req *milvuspb.TransferNodeRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) TransferReplica

func (c *Client) TransferReplica(ctx context.Context, req *querypb.TransferReplicaRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) TransferSegment

func (c *Client) TransferSegment(ctx context.Context, req *querypb.TransferSegmentRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) UpdateLoadConfig

func (c *Client) UpdateLoadConfig(ctx context.Context, req *querypb.UpdateLoadConfigRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) UpdateResourceGroups

func (c *Client) UpdateResourceGroups(ctx context.Context, req *querypb.UpdateResourceGroupsRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL