feat: Add ListMetadataRequest (#247)

* feat: add ListMetadataRequest

Signed-off-by: evenyag <realevenyag@gmail.com>

* chore: generate C++ and java codes

Signed-off-by: evenyag <realevenyag@gmail.com>

* chore: document return value

Signed-off-by: evenyag <realevenyag@gmail.com>

---------

Signed-off-by: evenyag <realevenyag@gmail.com>
This commit is contained in:
Yingwen
2025-06-23 14:39:46 +08:00
committed by GitHub
parent 82fe5c6282
commit 819a949550
4 changed files with 1897 additions and 196 deletions
+11
View File
@@ -55,6 +55,7 @@ message RegionRequest {
AlterRequests alters = 15;
BulkInsertRequest bulk_insert = 16;
SyncRequest sync = 17;
ListMetadataRequest list_metadata = 18;
}
}
@@ -62,6 +63,11 @@ message RegionResponse {
ResponseHeader header = 1;
uint64 affected_rows = 2;
map<string, bytes> extensions = 3;
// Response for ListMetadataRequest.
// It is a json array of region metadatas.
// The length of the array is equal to the number of regions in the list request.
// The element is null if the region is not found.
bytes metadata = 4;
}
message InsertRequests { repeated InsertRequest requests = 1; }
@@ -213,3 +219,8 @@ message SyncRequest {
MetricManifestInfo metric_manifest_info = 3;
}
}
// Get region metadatas of a list of regions.
message ListMetadataRequest {
repeated uint64 region_ids = 1;
}