grpcquerynodeclient

package
v0.10.3-0...-74752f2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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, addr string, nodeID int64) (types.QueryNodeClient, error)

NewClient creates a new QueryNode client.

Types

type Client

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

Client is the grpc client of QueryNode.

func (*Client) Close

func (c *Client) Close() error

Close close QueryNode's grpc client

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, req *querypb.DeleteRequest, _ ...grpc.CallOption) (*commonpb.Status, error)

Delete is used to forward delete message between delegator and workers.

func (*Client) DeleteBatch

DeleteBatch is the API to apply same delete data into multiple segments. it's basically same as `Delete` but cost less memory pressure.

func (*Client) GetComponentStates

GetComponentStates gets the component states of QueryNode.

func (*Client) GetMetrics

GetMetrics gets the metrics information of QueryNode.

func (*Client) GetSegmentInfo

GetSegmentInfo gets the information of the specified segments in QueryNode.

func (*Client) GetStatistics

func (*Client) GetStatisticsChannel

GetStatisticsChannel gets the statistics channel of QueryNode.

func (*Client) GetTimeTickChannel

GetTimeTickChannel gets the time tick channel of QueryNode.

func (*Client) LoadPartitions

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

LoadPartitions updates partitions meta info in QueryNode.

func (*Client) LoadSegments

func (c *Client) LoadSegments(ctx context.Context, req *querypb.LoadSegmentsRequest, _ ...grpc.CallOption) (*commonpb.Status, error)

LoadSegments loads the segments to search.

func (*Client) Query

Query performs replica query tasks in QueryNode.

func (*Client) QuerySegments

func (c *Client) QuerySegments(ctx context.Context, req *querypb.QueryRequest, _ ...grpc.CallOption) (*internalpb.RetrieveResults, error)

func (*Client) QueryStream

func (*Client) ReleaseCollection

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

ReleaseCollection releases the data of the specified collection in QueryNode.

func (*Client) ReleasePartitions

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

ReleasePartitions releases the data of the specified partitions in QueryNode.

func (*Client) ReleaseSegments

func (c *Client) ReleaseSegments(ctx context.Context, req *querypb.ReleaseSegmentsRequest, _ ...grpc.CallOption) (*commonpb.Status, error)

ReleaseSegments releases the data of the specified segments in QueryNode.

func (*Client) Search

Search performs replica search tasks in QueryNode.

func (*Client) SearchSegments

func (c *Client) SearchSegments(ctx context.Context, req *querypb.SearchRequest, _ ...grpc.CallOption) (*internalpb.SearchResults, error)

func (*Client) ShowConfigurations

ShowConfigurations gets specified configurations para of QueryNode

func (*Client) SyncDistribution

func (c *Client) SyncDistribution(ctx context.Context, req *querypb.SyncDistributionRequest, _ ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) SyncReplicaSegments

func (c *Client) SyncReplicaSegments(ctx context.Context, req *querypb.SyncReplicaSegmentsRequest, _ ...grpc.CallOption) (*commonpb.Status, error)

SyncReplicaSegments syncs replica node segments information to shard leaders.

func (*Client) UnsubDmChannel

func (c *Client) UnsubDmChannel(ctx context.Context, req *querypb.UnsubDmChannelRequest, _ ...grpc.CallOption) (*commonpb.Status, error)

UnsubDmChannel unsubscribes the channels about data manipulation.

func (*Client) WatchDmChannels

func (c *Client) WatchDmChannels(ctx context.Context, req *querypb.WatchDmChannelsRequest, _ ...grpc.CallOption) (*commonpb.Status, error)

WatchDmChannels watches the channels about data manipulation.

Jump to

Keyboard shortcuts

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