struct InformationTableDataSource {
table: Arc<dyn InformationTable + Send + Sync>,
-}
Fields§
§table: Arc<dyn InformationTable + Send + Sync>
Implementations§
source§impl InformationTableDataSource
impl InformationTableDataSource
fn new(table: Arc<dyn InformationTable + Send + Sync>) -> Self
fn try_project(&self, projection: &[usize]) -> Result<SchemaRef, BoxedError>
Trait Implementations§
source§impl DataSource for InformationTableDataSource
impl DataSource for InformationTableDataSource
source§fn get_stream(
+}Fields§
§table: Arc<dyn InformationTable + Send + Sync>
Implementations§
source§impl InformationTableDataSource
sourcefn new(table: Arc<dyn InformationTable + Send + Sync>) -> Self
sourcefn try_project(&self, projection: &[usize]) -> Result<SchemaRef, BoxedError>
Trait Implementations§
source§impl DataSource for InformationTableDataSource
source§fn get_stream(
&self,
- request: ScanRequest
+ request: ScanRequest
) -> Result<SendableRecordBatchStream, BoxedError>
Retrieves a stream of record batches based on the provided scan request.Auto Trait Implementations§
§impl !RefUnwindSafe for InformationTableDataSource
§impl Send for InformationTableDataSource
§impl Sync for InformationTableDataSource
§impl Unpin for InformationTableDataSource
§impl !UnwindSafe for InformationTableDataSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/catalog/information_schema/tables/struct.InformationSchemaTables.html b/catalog/information_schema/tables/struct.InformationSchemaTables.html
index 9135229666a6..05843ba5608e 100644
--- a/catalog/information_schema/tables/struct.InformationSchemaTables.html
+++ b/catalog/information_schema/tables/struct.InformationSchemaTables.html
@@ -5,7 +5,7 @@
}Fields§
§schema: SchemaRef
§catalog_name: String
§catalog_manager: Weak<dyn CatalogManager>
Implementations§
source§impl InformationSchemaTables
sourcepub(super) fn new(
catalog_name: String,
catalog_manager: Weak<dyn CatalogManager>
-) -> Self
sourcepub(crate) fn schema() -> SchemaRef
sourcefn builder(&self) -> InformationSchemaTablesBuilder
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for InformationSchemaTables
§impl Send for InformationSchemaTables
§impl Sync for InformationSchemaTables
§impl Unpin for InformationSchemaTables
§impl !UnwindSafe for InformationSchemaTables
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for InformationSchemaTables
§impl Send for InformationSchemaTables
§impl Sync for InformationSchemaTables
§impl Unpin for InformationSchemaTables
§impl !UnwindSafe for InformationSchemaTables
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/catalog/information_schema/trait.InformationTable.html b/catalog/information_schema/trait.InformationTable.html
index 70db19aa8f44..a9ccd0acf45f 100644
--- a/catalog/information_schema/trait.InformationTable.html
+++ b/catalog/information_schema/trait.InformationTable.html
@@ -1,10 +1,10 @@
InformationTable in catalog::information_schema - Rust Trait catalog::information_schema::InformationTable
source · trait InformationTable {
// Required methods
- fn table_id(&self) -> TableId;
+ fn table_id(&self) -> TableId;
fn table_name(&self) -> &'static str;
fn schema(&self) -> SchemaRef;
fn to_stream(&self) -> Result<SendableRecordBatchStream>;
// Provided method
fn table_type(&self) -> TableType { ... }
-}
Required Methods§
sourcefn table_id(&self) -> TableId
sourcefn table_name(&self) -> &'static str
sourcefn schema(&self) -> SchemaRef
sourcefn to_stream(&self) -> Result<SendableRecordBatchStream>
Provided Methods§
sourcefn table_type(&self) -> TableType
Implementors§
\ No newline at end of file
+}Required Methods§
sourcefn table_id(&self) -> TableId
sourcefn table_name(&self) -> &'static str
sourcefn schema(&self) -> SchemaRef
sourcefn to_stream(&self) -> Result<SendableRecordBatchStream>
Provided Methods§
sourcefn table_type(&self) -> TableType
Implementors§
\ No newline at end of file
diff --git a/client/error/enum.Error.html b/client/error/enum.Error.html
index 3b0a29813987..db427bc9c063 100644
--- a/client/error/enum.Error.html
+++ b/client/error/enum.Error.html
@@ -18,7 +18,7 @@
},
ColumnDataType {
location: Location,
- source: Error,
+ source: Error,
},
IllegalGrpcClientState {
err_msg: String,
@@ -48,7 +48,7 @@
err_msg: String,
location: Location,
},
-}Variants§
§IllegalFlightMessages
§FlightGet
§HandleRequest
§ConvertFlightData
§ColumnDataType
§IllegalGrpcClientState
§MissingField
§CreateChannel
§RegionServer
§Server
§IllegalDatabaseResponse
§ClientStreaming
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalFlightMessages
§FlightGet
§HandleRequest
§ConvertFlightData
§ColumnDataType
§IllegalGrpcClientState
§MissingField
§CreateChannel
§RegionServer
§Server
§IllegalDatabaseResponse
§ClientStreaming
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -58,7 +58,7 @@
Self: Sized,source§impl<__T0> IntoError<Error> for ClientStreamingSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for CreateChannelSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for FlightGetSnafu<__T0, __T1>where
diff --git a/client/error/struct.ColumnDataTypeSnafu.html b/client/error/struct.ColumnDataTypeSnafu.html
index ba80be076899..00c0ff7726ca 100644
--- a/client/error/struct.ColumnDataTypeSnafu.html
+++ b/client/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in client::error - Rust Struct client::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/client/index.html b/client/index.html
index 0f4a92e96a33..9150645cc691 100644
--- a/client/index.html
+++ b/client/index.html
@@ -1,2 +1,2 @@
client - Rust Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
+ All Items
Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
diff --git a/common_grpc_expr/error/enum.Error.html b/common_grpc_expr/error/enum.Error.html
index 4eeee03faf52..e86f2077cfe3 100644
--- a/common_grpc_expr/error/enum.Error.html
+++ b/common_grpc_expr/error/enum.Error.html
@@ -5,7 +5,7 @@
},
ColumnDataType {
location: Location,
- source: Error,
+ source: Error,
},
DuplicatedTimestampColumn {
exists: String,
@@ -35,7 +35,7 @@
InvalidColumnDef {
column: String,
location: Location,
- source: Error,
+ source: Error,
},
UnexpectedValuesLength {
reason: String,
@@ -45,7 +45,7 @@
location_type: i32,
location: Location,
},
-}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -53,7 +53,7 @@
downcast to a specific implementation.source§fn location_opt(&self) -> Option<Location>
Get the location of this error, None if the location is unavailable.
Add _opt
suffix to avoid confusing with similar method in std::error::Error
source§fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where
@@ -63,7 +63,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
fn get_stream(
+}Fields§
§table: Arc<dyn InformationTable + Send + Sync>
Implementations§
source§impl InformationTableDataSource
sourcefn new(table: Arc<dyn InformationTable + Send + Sync>) -> Self
sourcefn try_project(&self, projection: &[usize]) -> Result<SchemaRef, BoxedError>
Trait Implementations§
source§impl DataSource for InformationTableDataSource
source§fn get_stream(
&self,
- request: ScanRequest
+ request: ScanRequest
) -> Result<SendableRecordBatchStream, BoxedError>
Retrieves a stream of record batches based on the provided scan request.Auto Trait Implementations§
§impl !RefUnwindSafe for InformationTableDataSource
§impl Send for InformationTableDataSource
§impl Sync for InformationTableDataSource
§impl Unpin for InformationTableDataSource
§impl !UnwindSafe for InformationTableDataSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/catalog/information_schema/tables/struct.InformationSchemaTables.html b/catalog/information_schema/tables/struct.InformationSchemaTables.html
index 9135229666a6..05843ba5608e 100644
--- a/catalog/information_schema/tables/struct.InformationSchemaTables.html
+++ b/catalog/information_schema/tables/struct.InformationSchemaTables.html
@@ -5,7 +5,7 @@
}Fields§
§schema: SchemaRef
§catalog_name: String
§catalog_manager: Weak<dyn CatalogManager>
Implementations§
source§impl InformationSchemaTables
sourcepub(super) fn new(
catalog_name: String,
catalog_manager: Weak<dyn CatalogManager>
-) -> Self
sourcepub(crate) fn schema() -> SchemaRef
sourcefn builder(&self) -> InformationSchemaTablesBuilder
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for InformationSchemaTables
§impl Send for InformationSchemaTables
§impl Sync for InformationSchemaTables
§impl Unpin for InformationSchemaTables
§impl !UnwindSafe for InformationSchemaTables
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for InformationSchemaTables
§impl Send for InformationSchemaTables
§impl Sync for InformationSchemaTables
§impl Unpin for InformationSchemaTables
§impl !UnwindSafe for InformationSchemaTables
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/catalog/information_schema/trait.InformationTable.html b/catalog/information_schema/trait.InformationTable.html
index 70db19aa8f44..a9ccd0acf45f 100644
--- a/catalog/information_schema/trait.InformationTable.html
+++ b/catalog/information_schema/trait.InformationTable.html
@@ -1,10 +1,10 @@
InformationTable in catalog::information_schema - Rust Trait catalog::information_schema::InformationTable
source · trait InformationTable {
// Required methods
- fn table_id(&self) -> TableId;
+ fn table_id(&self) -> TableId;
fn table_name(&self) -> &'static str;
fn schema(&self) -> SchemaRef;
fn to_stream(&self) -> Result<SendableRecordBatchStream>;
// Provided method
fn table_type(&self) -> TableType { ... }
-}
Required Methods§
sourcefn table_id(&self) -> TableId
sourcefn table_name(&self) -> &'static str
sourcefn schema(&self) -> SchemaRef
sourcefn to_stream(&self) -> Result<SendableRecordBatchStream>
Provided Methods§
sourcefn table_type(&self) -> TableType
Implementors§
\ No newline at end of file
+}Required Methods§
sourcefn table_id(&self) -> TableId
sourcefn table_name(&self) -> &'static str
sourcefn schema(&self) -> SchemaRef
sourcefn to_stream(&self) -> Result<SendableRecordBatchStream>
Provided Methods§
sourcefn table_type(&self) -> TableType
Implementors§
\ No newline at end of file
diff --git a/client/error/enum.Error.html b/client/error/enum.Error.html
index 3b0a29813987..db427bc9c063 100644
--- a/client/error/enum.Error.html
+++ b/client/error/enum.Error.html
@@ -18,7 +18,7 @@
},
ColumnDataType {
location: Location,
- source: Error,
+ source: Error,
},
IllegalGrpcClientState {
err_msg: String,
@@ -48,7 +48,7 @@
err_msg: String,
location: Location,
},
-}Variants§
§IllegalFlightMessages
§FlightGet
§HandleRequest
§ConvertFlightData
§ColumnDataType
§IllegalGrpcClientState
§MissingField
§CreateChannel
§RegionServer
§Server
§IllegalDatabaseResponse
§ClientStreaming
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalFlightMessages
§FlightGet
§HandleRequest
§ConvertFlightData
§ColumnDataType
§IllegalGrpcClientState
§MissingField
§CreateChannel
§RegionServer
§Server
§IllegalDatabaseResponse
§ClientStreaming
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -58,7 +58,7 @@
Self: Sized,source§impl<__T0> IntoError<Error> for ClientStreamingSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for CreateChannelSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for FlightGetSnafu<__T0, __T1>where
diff --git a/client/error/struct.ColumnDataTypeSnafu.html b/client/error/struct.ColumnDataTypeSnafu.html
index ba80be076899..00c0ff7726ca 100644
--- a/client/error/struct.ColumnDataTypeSnafu.html
+++ b/client/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in client::error - Rust Struct client::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/client/index.html b/client/index.html
index 0f4a92e96a33..9150645cc691 100644
--- a/client/index.html
+++ b/client/index.html
@@ -1,2 +1,2 @@
client - Rust Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
+ All Items
Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
diff --git a/common_grpc_expr/error/enum.Error.html b/common_grpc_expr/error/enum.Error.html
index 4eeee03faf52..e86f2077cfe3 100644
--- a/common_grpc_expr/error/enum.Error.html
+++ b/common_grpc_expr/error/enum.Error.html
@@ -5,7 +5,7 @@
},
ColumnDataType {
location: Location,
- source: Error,
+ source: Error,
},
DuplicatedTimestampColumn {
exists: String,
@@ -35,7 +35,7 @@
InvalidColumnDef {
column: String,
location: Location,
- source: Error,
+ source: Error,
},
UnexpectedValuesLength {
reason: String,
@@ -45,7 +45,7 @@
location_type: i32,
location: Location,
},
-}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -53,7 +53,7 @@
downcast to a specific implementation.source§fn location_opt(&self) -> Option<Location>
Get the location of this error, None if the location is unavailable.
Add _opt
suffix to avoid confusing with similar method in std::error::Error
source§fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where
@@ -63,7 +63,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
source§impl InformationTableDataSource
impl InformationTableDataSource
fn new(table: Arc<dyn InformationTable + Send + Sync>) -> Self
fn try_project(&self, projection: &[usize]) -> Result<SchemaRef, BoxedError>
source§impl DataSource for InformationTableDataSource
impl DataSource for InformationTableDataSource
source§fn get_stream(
&self,
- request: ScanRequest
+ request: ScanRequest
) -> Result<SendableRecordBatchStream, BoxedError>
fn get_stream( &self, - request: ScanRequest + request: ScanRequest ) -> Result<SendableRecordBatchStream, BoxedError>
impl !RefUnwindSafe for InformationTableDataSource
impl Send for InformationTableDataSource
impl Sync for InformationTableDataSource
impl Unpin for InformationTableDataSource
impl !UnwindSafe for InformationTableDataSource
source§impl<T> BorrowMut<T> for Twhere
diff --git a/catalog/information_schema/tables/struct.InformationSchemaTables.html b/catalog/information_schema/tables/struct.InformationSchemaTables.html
index 9135229666a6..05843ba5608e 100644
--- a/catalog/information_schema/tables/struct.InformationSchemaTables.html
+++ b/catalog/information_schema/tables/struct.InformationSchemaTables.html
@@ -5,7 +5,7 @@
}Fields§
§schema: SchemaRef
§catalog_name: String
§catalog_manager: Weak<dyn CatalogManager>
Implementations§
source§impl InformationSchemaTables
sourcepub(super) fn new(
catalog_name: String,
catalog_manager: Weak<dyn CatalogManager>
-) -> Self
sourcepub(crate) fn schema() -> SchemaRef
sourcefn builder(&self) -> InformationSchemaTablesBuilder
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for InformationSchemaTables
§impl Send for InformationSchemaTables
§impl Sync for InformationSchemaTables
§impl Unpin for InformationSchemaTables
§impl !UnwindSafe for InformationSchemaTables
Blanket Implementations§
impl<T> BorrowMut<T> for Twhere
diff --git a/catalog/information_schema/tables/struct.InformationSchemaTables.html b/catalog/information_schema/tables/struct.InformationSchemaTables.html
index 9135229666a6..05843ba5608e 100644
--- a/catalog/information_schema/tables/struct.InformationSchemaTables.html
+++ b/catalog/information_schema/tables/struct.InformationSchemaTables.html
@@ -5,7 +5,7 @@
}Fields§
§schema: SchemaRef
§catalog_name: String
§catalog_manager: Weak<dyn CatalogManager>
Implementations§
source§impl InformationSchemaTables
sourcepub(super) fn new(
catalog_name: String,
catalog_manager: Weak<dyn CatalogManager>
-) -> Self
sourcepub(crate) fn schema() -> SchemaRef
sourcefn builder(&self) -> InformationSchemaTablesBuilder
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for InformationSchemaTables
§impl Send for InformationSchemaTables
§impl Sync for InformationSchemaTables
§impl Unpin for InformationSchemaTables
§impl !UnwindSafe for InformationSchemaTables
Blanket Implementations§
source§impl InformationSchemaTables
impl InformationSchemaTables
pub(super) fn new( catalog_name: String, catalog_manager: Weak<dyn CatalogManager> -) -> Self
pub(crate) fn schema() -> SchemaRef
fn builder(&self) -> InformationSchemaTablesBuilder
impl !RefUnwindSafe for InformationSchemaTables
impl Send for InformationSchemaTables
impl Sync for InformationSchemaTables
impl Unpin for InformationSchemaTables
impl !UnwindSafe for InformationSchemaTables
impl !RefUnwindSafe for InformationSchemaTables
impl Send for InformationSchemaTables
impl Sync for InformationSchemaTables
impl Unpin for InformationSchemaTables
impl !UnwindSafe for InformationSchemaTables
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/catalog/information_schema/trait.InformationTable.html b/catalog/information_schema/trait.InformationTable.html
index 70db19aa8f44..a9ccd0acf45f 100644
--- a/catalog/information_schema/trait.InformationTable.html
+++ b/catalog/information_schema/trait.InformationTable.html
@@ -1,10 +1,10 @@
InformationTable in catalog::information_schema - Rust Trait catalog::information_schema::InformationTable
source · trait InformationTable {
// Required methods
- fn table_id(&self) -> TableId;
+ fn table_id(&self) -> TableId;
fn table_name(&self) -> &'static str;
fn schema(&self) -> SchemaRef;
fn to_stream(&self) -> Result<SendableRecordBatchStream>;
// Provided method
fn table_type(&self) -> TableType { ... }
-}
Required Methods§
sourcefn table_id(&self) -> TableId
sourcefn table_name(&self) -> &'static str
sourcefn schema(&self) -> SchemaRef
sourcefn to_stream(&self) -> Result<SendableRecordBatchStream>
Provided Methods§
sourcefn table_type(&self) -> TableType
Implementors§
\ No newline at end of file
+}Required Methods§
sourcefn table_id(&self) -> TableId
sourcefn table_name(&self) -> &'static str
sourcefn schema(&self) -> SchemaRef
sourcefn to_stream(&self) -> Result<SendableRecordBatchStream>
Provided Methods§
sourcefn table_type(&self) -> TableType
Implementors§
fn conv<T>(self) -> Twhere
diff --git a/catalog/information_schema/trait.InformationTable.html b/catalog/information_schema/trait.InformationTable.html
index 70db19aa8f44..a9ccd0acf45f 100644
--- a/catalog/information_schema/trait.InformationTable.html
+++ b/catalog/information_schema/trait.InformationTable.html
@@ -1,10 +1,10 @@
InformationTable in catalog::information_schema - Rust Trait catalog::information_schema::InformationTable
source · trait InformationTable {
// Required methods
- fn table_id(&self) -> TableId;
+ fn table_id(&self) -> TableId;
fn table_name(&self) -> &'static str;
fn schema(&self) -> SchemaRef;
fn to_stream(&self) -> Result<SendableRecordBatchStream>;
// Provided method
fn table_type(&self) -> TableType { ... }
-}
Required Methods§
sourcefn table_id(&self) -> TableId
sourcefn table_name(&self) -> &'static str
sourcefn schema(&self) -> SchemaRef
sourcefn to_stream(&self) -> Result<SendableRecordBatchStream>
Provided Methods§
sourcefn table_type(&self) -> TableType
Implementors§
\ No newline at end of file
+}Required Methods§
sourcefn table_id(&self) -> TableId
sourcefn table_name(&self) -> &'static str
sourcefn schema(&self) -> SchemaRef
sourcefn to_stream(&self) -> Result<SendableRecordBatchStream>
Provided Methods§
sourcefn table_type(&self) -> TableType
Implementors§
Trait catalog::information_schema::InformationTable
source · trait InformationTable {
// Required methods
- fn table_id(&self) -> TableId;
+ fn table_id(&self) -> TableId;
fn table_name(&self) -> &'static str;
fn schema(&self) -> SchemaRef;
fn to_stream(&self) -> Result<SendableRecordBatchStream>;
// Provided method
fn table_type(&self) -> TableType { ... }
-}
Required Methods§
fn table_id(&self) -> TableId
fn table_name(&self) -> &'static str
fn schema(&self) -> SchemaRef
fn to_stream(&self) -> Result<SendableRecordBatchStream>
Provided Methods§
fn table_type(&self) -> TableType
Implementors§
fn table_id(&self) -> TableId
fn table_name(&self) -> &'static str
fn schema(&self) -> SchemaRef
fn to_stream(&self) -> Result<SendableRecordBatchStream>
fn table_type(&self) -> TableType
Variants§
IllegalFlightMessages
FlightGet
HandleRequest
ConvertFlightData
ColumnDataType
IllegalGrpcClientState
MissingField
CreateChannel
RegionServer
Server
IllegalDatabaseResponse
ClientStreaming
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalFlightMessages
§FlightGet
§HandleRequest
§ConvertFlightData
§ColumnDataType
§IllegalGrpcClientState
§MissingField
§CreateChannel
§RegionServer
§Server
§IllegalDatabaseResponse
§ClientStreaming
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -58,7 +58,7 @@
Self: Sized,source§impl<__T0> IntoError<Error> for ClientStreamingSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for CreateChannelSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for FlightGetSnafu<__T0, __T1>where
diff --git a/client/error/struct.ColumnDataTypeSnafu.html b/client/error/struct.ColumnDataTypeSnafu.html
index ba80be076899..00c0ff7726ca 100644
--- a/client/error/struct.ColumnDataTypeSnafu.html
+++ b/client/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in client::error - Rust Struct client::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/client/index.html b/client/index.html
index 0f4a92e96a33..9150645cc691 100644
--- a/client/index.html
+++ b/client/index.html
@@ -1,2 +1,2 @@
client - Rust Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
+ All Items
Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
diff --git a/common_grpc_expr/error/enum.Error.html b/common_grpc_expr/error/enum.Error.html
index 4eeee03faf52..e86f2077cfe3 100644
--- a/common_grpc_expr/error/enum.Error.html
+++ b/common_grpc_expr/error/enum.Error.html
@@ -5,7 +5,7 @@
},
ColumnDataType {
location: Location,
- source: Error,
+ source: Error,
},
DuplicatedTimestampColumn {
exists: String,
@@ -35,7 +35,7 @@
InvalidColumnDef {
column: String,
location: Location,
- source: Error,
+ source: Error,
},
UnexpectedValuesLength {
reason: String,
@@ -45,7 +45,7 @@
location_type: i32,
location: Location,
},
-}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -53,7 +53,7 @@
downcast to a specific implementation.source§fn location_opt(&self) -> Option<Location>
Get the location of this error, None if the location is unavailable.
Add _opt
suffix to avoid confusing with similar method in std::error::Error
source§fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where
@@ -63,7 +63,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
impl Error for Errorwhere
+}Variants§
§IllegalFlightMessages
§FlightGet
§HandleRequest
§ConvertFlightData
§ColumnDataType
§IllegalGrpcClientState
§MissingField
§CreateChannel
§RegionServer
§Server
§IllegalDatabaseResponse
§ClientStreaming
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -58,7 +58,7 @@
Self: Sized,source§impl<__T0> IntoError<Error> for ClientStreamingSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for CreateChannelSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for FlightGetSnafu<__T0, __T1>where
diff --git a/client/error/struct.ColumnDataTypeSnafu.html b/client/error/struct.ColumnDataTypeSnafu.html
index ba80be076899..00c0ff7726ca 100644
--- a/client/error/struct.ColumnDataTypeSnafu.html
+++ b/client/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in client::error - Rust Struct client::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/client/index.html b/client/index.html
index 0f4a92e96a33..9150645cc691 100644
--- a/client/index.html
+++ b/client/index.html
@@ -1,2 +1,2 @@
client - Rust Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
+ All Items
Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
diff --git a/common_grpc_expr/error/enum.Error.html b/common_grpc_expr/error/enum.Error.html
index 4eeee03faf52..e86f2077cfe3 100644
--- a/common_grpc_expr/error/enum.Error.html
+++ b/common_grpc_expr/error/enum.Error.html
@@ -5,7 +5,7 @@
},
ColumnDataType {
location: Location,
- source: Error,
+ source: Error,
},
DuplicatedTimestampColumn {
exists: String,
@@ -35,7 +35,7 @@
InvalidColumnDef {
column: String,
location: Location,
- source: Error,
+ source: Error,
},
UnexpectedValuesLength {
reason: String,
@@ -45,7 +45,7 @@
location_type: i32,
location: Location,
},
-}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -53,7 +53,7 @@
downcast to a specific implementation.source§fn location_opt(&self) -> Option<Location>
Get the location of this error, None if the location is unavailable.
Add _opt
suffix to avoid confusing with similar method in std::error::Error
source§fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where
@@ -63,7 +63,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
IllegalFlightMessages
FlightGet
HandleRequest
ConvertFlightData
ColumnDataType
IllegalGrpcClientState
MissingField
CreateChannel
RegionServer
Server
IllegalDatabaseResponse
ClientStreaming
source§impl Error for Errorwhere
Self: Debug + Display,
impl Error for Errorwhere Self: Debug + Display,
source§fn description(&self) -> &str
fn description(&self) -> &str
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
source§impl ErrorCompat for Error
impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where Self: AsErrorSource,
source§impl<__T0> IntoError<Error> for ClientStreamingSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<Error> for ClientStreamingSnafu<__T0>where Error: Error + ErrorCompat, __T0: Into<String>,
source§impl<__T0> IntoError<Error> for CreateChannelSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<Error> for CreateChannelSnafu<__T0>where Error: Error + ErrorCompat, __T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for FlightGetSnafu<__T0, __T1>where
diff --git a/client/error/struct.ColumnDataTypeSnafu.html b/client/error/struct.ColumnDataTypeSnafu.html
index ba80be076899..00c0ff7726ca 100644
--- a/client/error/struct.ColumnDataTypeSnafu.html
+++ b/client/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in client::error - Rust Struct client::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/client/index.html b/client/index.html
index 0f4a92e96a33..9150645cc691 100644
--- a/client/index.html
+++ b/client/index.html
@@ -1,2 +1,2 @@
client - Rust Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
+ All Items
Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
diff --git a/common_grpc_expr/error/enum.Error.html b/common_grpc_expr/error/enum.Error.html
index 4eeee03faf52..e86f2077cfe3 100644
--- a/common_grpc_expr/error/enum.Error.html
+++ b/common_grpc_expr/error/enum.Error.html
@@ -5,7 +5,7 @@
},
ColumnDataType {
location: Location,
- source: Error,
+ source: Error,
},
DuplicatedTimestampColumn {
exists: String,
@@ -35,7 +35,7 @@
InvalidColumnDef {
column: String,
location: Location,
- source: Error,
+ source: Error,
},
UnexpectedValuesLength {
reason: String,
@@ -45,7 +45,7 @@
location_type: i32,
location: Location,
},
-}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -53,7 +53,7 @@
downcast to a specific implementation.source§fn location_opt(&self) -> Option<Location>
Get the location of this error, None if the location is unavailable.
Add _opt
suffix to avoid confusing with similar method in std::error::Error
source§fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where
@@ -63,7 +63,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
impl<__T0, __T1> IntoError<Error> for FlightGetSnafu<__T0, __T1>where
diff --git a/client/error/struct.ColumnDataTypeSnafu.html b/client/error/struct.ColumnDataTypeSnafu.html
index ba80be076899..00c0ff7726ca 100644
--- a/client/error/struct.ColumnDataTypeSnafu.html
+++ b/client/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in client::error - Rust Struct client::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/client/index.html b/client/index.html
index 0f4a92e96a33..9150645cc691 100644
--- a/client/index.html
+++ b/client/index.html
@@ -1,2 +1,2 @@
client - Rust Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
+ All Items
Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
diff --git a/common_grpc_expr/error/enum.Error.html b/common_grpc_expr/error/enum.Error.html
index 4eeee03faf52..e86f2077cfe3 100644
--- a/common_grpc_expr/error/enum.Error.html
+++ b/common_grpc_expr/error/enum.Error.html
@@ -5,7 +5,7 @@
},
ColumnDataType {
location: Location,
- source: Error,
+ source: Error,
},
DuplicatedTimestampColumn {
exists: String,
@@ -35,7 +35,7 @@
InvalidColumnDef {
column: String,
location: Location,
- source: Error,
+ source: Error,
},
UnexpectedValuesLength {
reason: String,
@@ -45,7 +45,7 @@
location_type: i32,
location: Location,
},
-}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -53,7 +53,7 @@
downcast to a specific implementation.source§fn location_opt(&self) -> Option<Location>
Get the location of this error, None if the location is unavailable.
Add _opt
suffix to avoid confusing with similar method in std::error::Error
source§fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where
@@ -63,7 +63,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
Struct client::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
fn clone(&self) -> ColumnDataTypeSnafu
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ColumnDataTypeSnafu
impl Debug for ColumnDataTypeSnafu
impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
impl RefUnwindSafe for ColumnDataTypeSnafu
impl Send for ColumnDataTypeSnafu
impl Sync for ColumnDataTypeSnafu
impl Unpin for ColumnDataTypeSnafu
impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ColumnDataTypeSnafu
impl Send for ColumnDataTypeSnafu
impl Sync for ColumnDataTypeSnafu
impl Unpin for ColumnDataTypeSnafu
impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/client/index.html b/client/index.html
index 0f4a92e96a33..9150645cc691 100644
--- a/client/index.html
+++ b/client/index.html
@@ -1,2 +1,2 @@
client - Rust Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
+ All Items
fn conv<T>(self) -> Twhere
diff --git a/client/index.html b/client/index.html
index 0f4a92e96a33..9150645cc691 100644
--- a/client/index.html
+++ b/client/index.html
@@ -1,2 +1,2 @@
client - Rust Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
\ No newline at end of file
+ All Items
Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
Re-exports
Modules
Structs
- A structure that provides some methods for streaming data insert.
Enums
Constants
Functions
Type Aliases
Variants§
IllegalDeleteRequest
ColumnDataType
DuplicatedTimestampColumn
DuplicatedColumnName
MissingTimestampColumn
InvalidColumnProto
CreateVector
MissingField
InvalidColumnDef
UnexpectedValuesLength
UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
+}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -53,7 +53,7 @@
downcast to a specific implementation.source§fn location_opt(&self) -> Option<Location>
Get the location of this error, None if the location is unavailable.
Add _opt
suffix to avoid confusing with similar method in std::error::Error
source§fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where
@@ -63,7 +63,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
impl Error for Errorwhere
+}Variants§
§IllegalDeleteRequest
§ColumnDataType
§DuplicatedTimestampColumn
§DuplicatedColumnName
§MissingTimestampColumn
§InvalidColumnProto
§CreateVector
§MissingField
§InvalidColumnDef
§UnexpectedValuesLength
§UnknownLocationType
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingsource§impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
@@ -53,7 +53,7 @@
downcast to a specific implementation.source§fn location_opt(&self) -> Option<Location>
Get the location of this error, None if the location is unavailable.
Add _opt
suffix to avoid confusing with similar method in std::error::Error
source§fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where
@@ -63,7 +63,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
IllegalDeleteRequest
ColumnDataType
DuplicatedTimestampColumn
DuplicatedColumnName
MissingTimestampColumn
InvalidColumnProto
CreateVector
MissingField
InvalidColumnDef
UnexpectedValuesLength
UnknownLocationType
source§impl Error for Errorwhere
Self: Debug + Display,
impl Error for Errorwhere Self: Debug + Display,
source§fn description(&self) -> &str
fn description(&self) -> &str
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
source§impl ErrorCompat for Error
impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where Self: AsErrorSource,
source§fn location_opt(&self) -> Option<Location>
fn location_opt(&self) -> Option<Location>
_opt
suffix to avoid confusing with similar method in std::error::Error
fn output_msg(&self) -> Stringwhere Self: Sized,
source§impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<Error> for DuplicatedColumnNameSnafu<__T0>where Error: Error + ErrorCompat, __T0: Into<String>,
source§impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where
@@ -63,7 +63,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0, __T1> IntoError<Error> for DuplicatedTimestampColumnSnafu<__T0, __T1>where @@ -63,7 +63,7 @@ Error: Error + ErrorCompat, __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where Error: Error + ErrorCompat, - __T0: Into<String>,
source§impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<Error> for InvalidColumnProtoSnafu<__T0>where Error: Error + ErrorCompat, __T0: Into<String>,
source§impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
impl<__T0> IntoError<Error> for MissingFieldSnafu<__T0>where
Error: Error + ErrorCompat,
diff --git a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
index 2e1c16c654ab..413134b15c8e 100644
--- a/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
+++ b/common_grpc_expr/error/struct.ColumnDataTypeSnafu.html
@@ -1,6 +1,6 @@
ColumnDataTypeSnafu in common_grpc_expr::error - Rust Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ColumnDataTypeSnafu
source§impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ColumnDataTypeSnafu
§impl Send for ColumnDataTypeSnafu
§impl Sync for ColumnDataTypeSnafu
§impl Unpin for ColumnDataTypeSnafu
§impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
Struct common_grpc_expr::error::ColumnDataTypeSnafu
source · pub struct ColumnDataTypeSnafu;
Expand description
SNAFU context selector for the Error::ColumnDataType
variant
Trait Implementations§
source§impl Clone for ColumnDataTypeSnafu
impl Clone for ColumnDataTypeSnafu
source§fn clone(&self) -> ColumnDataTypeSnafu
fn clone(&self) -> ColumnDataTypeSnafu
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ColumnDataTypeSnafu
impl Debug for ColumnDataTypeSnafu
impl Copy for ColumnDataTypeSnafu
Auto Trait Implementations§
impl RefUnwindSafe for ColumnDataTypeSnafu
impl Send for ColumnDataTypeSnafu
impl Sync for ColumnDataTypeSnafu
impl Unpin for ColumnDataTypeSnafu
impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ColumnDataTypeSnafu
impl Send for ColumnDataTypeSnafu
impl Sync for ColumnDataTypeSnafu
impl Unpin for ColumnDataTypeSnafu
impl UnwindSafe for ColumnDataTypeSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
fn conv<T>(self) -> Twhere
diff --git a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
index ed73ff0648f8..66d92a1c718a 100644
--- a/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
+++ b/common_grpc_expr/error/struct.InvalidColumnDefSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
Fields§
§column: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for InvalidColumnDefSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
Trait Implementations§
source§impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for TruncateTableProcedure
§impl Send for TruncateTableProcedure
§impl Sync for TruncateTableProcedure
§impl Unpin for TruncateTableProcedure
§impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
Expand description
SNAFU context selector for the Error::InvalidColumnDef
variant
source§impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
impl<__T0: Clone> Clone for InvalidColumnDefSnafu<__T0>
source§fn clone(&self) -> InvalidColumnDefSnafu<__T0>
fn clone(&self) -> InvalidColumnDefSnafu<__T0>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
impl<__T0: Debug> Debug for InvalidColumnDefSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
impl<__T0> IntoError<Error> for InvalidColumnDefSnafu<__T0>where Error: Error + ErrorCompat, - __T0: Into<String>,
impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where + __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
impl<__T0: Copy> Copy for InvalidColumnDefSnafu<__T0>
impl<__T0> RefUnwindSafe for InvalidColumnDefSnafu<__T0>where __T0: RefUnwindSafe,
impl<__T0> Send for InvalidColumnDefSnafu<__T0>where __T0: Send,
impl<__T0> Sync for InvalidColumnDefSnafu<__T0>where __T0: Sync,
impl<__T0> Unpin for InvalidColumnDefSnafu<__T0>where
diff --git a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
index 5757d895404f..ef990bb4dc97 100644
--- a/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
+++ b/common_meta/ddl/alter_table/fn.create_proto_alter_kind.html
@@ -1,7 +1,7 @@
create_proto_alter_kind in common_meta::ddl::alter_table - Rust Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
+) -> Result<(Option<Kind>, Option<ColumnId>)>Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html
index 7fb28705749e..dd2fd2eee728 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableData.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableData.html
@@ -3,14 +3,14 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>,
+ next_column_id: Option<ColumnId>,
}Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+§cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
sourcepub fn new(
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
cluster_id: u64,
- next_column_id: Option<ColumnId>
+ next_column_id: Option<ColumnId>
) -> Self
sourcefn table_ref(&self) -> TableReference<'_>
sourcefn table_id(&self) -> TableId
sourcefn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for AlterTableData
§impl Send for AlterTableData
§impl Sync for AlterTableData
§impl Unpin for AlterTableData
§impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for AlterTableProcedure
§impl Send for AlterTableProcedure
§impl Sync for AlterTableProcedure
§impl Unpin for AlterTableProcedure
§impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for CreateTableProcedure
§impl Send for CreateTableProcedure
§impl Sync for CreateTableProcedure
§impl Unpin for CreateTableProcedure
§impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Execute the procedure. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for DropTableProcedure
§impl Send for DropTableProcedure
§impl Sync for DropTableProcedure
§impl Unpin for DropTableProcedure
§impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
Function common_meta::ddl::alter_table::create_proto_alter_kind
source · pub fn create_proto_alter_kind(
table_info: &RawTableInfo,
alter_kind: &Kind
-) -> Result<(Option<Kind>, Option<ColumnId>)>
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Expand description
Creates region proto alter kind from table_info
and alter_kind
.
Returns the kind and next column id if it adds new columns.
Panics
Panics if kind is rename.
diff --git a/common_meta/ddl/alter_table/struct.AlterTableData.html b/common_meta/ddl/alter_table/struct.AlterTableData.html index 7fb28705749e..dd2fd2eee728 100644 --- a/common_meta/ddl/alter_table/struct.AlterTableData.html +++ b/common_meta/ddl/alter_table/struct.AlterTableData.html @@ -3,14 +3,14 @@ task: AlterTableTask, table_info_value: DeserializedValueWithBytes<TableInfoValue>, cluster_id: u64, - next_column_id: Option<ColumnId>, + next_column_id: Option<ColumnId>, }Fields§
§state: AlterTableState
§task: AlterTableTask
§table_info_value: DeserializedValueWithBytes<TableInfoValue>
Table info value before alteration.
-cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
+cluster_id: u64
§next_column_id: Option<ColumnId>
Next column id of the table if the task adds columns to the table.
Implementations§
source§impl AlterTableData
impl AlterTableData
pub fn new( task: AlterTableTask, table_info_value: DeserializedValueWithBytes<TableInfoValue>, cluster_id: u64, - next_column_id: Option<ColumnId> + next_column_id: Option<ColumnId> ) -> Self
fn table_ref(&self) -> TableReference<'_>
fn table_id(&self) -> TableId
fn table_info(&self) -> &RawTableInfo
Trait Implementations§
source§impl Debug for AlterTableData
impl Debug for AlterTableData
source§impl<'de> Deserialize<'de> for AlterTableData
impl<'de> Deserialize<'de> for AlterTableData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Auto Trait Implementations§
impl RefUnwindSafe for AlterTableData
impl Send for AlterTableData
impl Sync for AlterTableData
impl Unpin for AlterTableData
impl UnwindSafe for AlterTableData
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
index 9c4d5a252f92..561594777ba8 100644
--- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
+++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html
@@ -8,25 +8,25 @@
task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
+) -> Result<Self>
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourcefn alter_expr(&self) -> &AlterExpr
sourcefn alter_kind(&self) -> Result<&Kind>
sourcepub fn create_alter_region_request(
&self,
- region_id: RegionId
-) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
impl<T> Any for Twhere diff --git a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html index 9c4d5a252f92..561594777ba8 100644 --- a/common_meta/ddl/alter_table/struct.AlterTableProcedure.html +++ b/common_meta/ddl/alter_table/struct.AlterTableProcedure.html @@ -8,25 +8,25 @@ task: AlterTableTask, table_info_value: DeserializedValueWithBytes<TableInfoValue>, context: DdlContext -) -> Result<Self>
pub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
async fn on_prepare(&mut self) -> Result<Status>
fn alter_expr(&self) -> &AlterExpr
fn alter_kind(&self) -> Result<&Kind>
pub fn create_alter_region_request( +) -> Result<Self>
pub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
async fn on_prepare(&mut self) -> Result<Status>
fn alter_expr(&self) -> &AlterExpr
fn alter_kind(&self) -> Result<&Kind>
pub fn create_alter_region_request( &self, - region_id: RegionId -) -> Result<AlterRequest>
pub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
+ region_id: RegionId
+) -> Result<AlterRequest>
sourcepub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
Update table metadata for rename table operation.
sourceasync fn on_update_metadata_for_alter(
&self,
new_table_info: RawTableInfo
-) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-sourcefn lock_key_inner(&self) -> Vec<String>
async fn on_update_metadata_for_rename( + region_id: RegionId +) -> Result<AlterRequest>
pub async fn submit_alter_region_requests(&mut self) -> Result<Status>
sourceasync fn on_update_metadata_for_rename(
&self,
new_table_name: String
) -> Result<()>
async fn on_update_metadata_for_rename( &self, new_table_name: String ) -> Result<()>
Update table metadata for rename table operation.
async fn on_update_metadata_for_alter( &self, new_table_info: RawTableInfo -) -> Result<()>
fn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
async fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
async fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
-fn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Result<()>
sourcefn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+sourcefn lock_key_inner(&self) -> Vec<String>
fn execute<'life0, 'life1, 'async_trait>( +) -> Result<()>
fn build_new_table_info(&self) -> Result<TableInfo>
sourceasync fn on_update_metadata(&mut self) -> Result<Status>
async fn on_update_metadata(&mut self) -> Result<Status>
Update table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
async fn on_broadcast(&mut self) -> Result<Status>
Broadcasts the invalidating table cache instructions.
+fn lock_key_inner(&self) -> Vec<String>
Trait Implementations§
source§impl Procedure for AlterTableProcedure
impl Procedure for AlterTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>( &'life0 mut self, - _ctx: &'life1 ProcedureContext -) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where + _ctx: &'life1 ProcedureContext +) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, - 'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for AlterTableProcedure
impl Send for AlterTableProcedure
impl Sync for AlterTableProcedure
impl Unpin for AlterTableProcedure
impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AlterTableProcedure
impl Send for AlterTableProcedure
impl Sync for AlterTableProcedure
impl Unpin for AlterTableProcedure
impl !UnwindSafe for AlterTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
index 209c518c2a22..7984968bd53d 100644
--- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html
+++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html
@@ -6,14 +6,14 @@
task: CreateTableTask,
region_routes: Vec<RegionRoute>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
fn conv<T>(self) -> Twhere diff --git a/common_meta/ddl/create_table/struct.CreateTableProcedure.html b/common_meta/ddl/create_table/struct.CreateTableProcedure.html index 209c518c2a22..7984968bd53d 100644 --- a/common_meta/ddl/create_table/struct.CreateTableProcedure.html +++ b/common_meta/ddl/create_table/struct.CreateTableProcedure.html @@ -6,14 +6,14 @@ task: CreateTableTask, region_routes: Vec<RegionRoute>, context: DdlContext -) -> Self
pub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
pub fn table_info(&self) -> &RawTableInfo
fn table_id(&self) -> TableId
pub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
async fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
-pub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
pub async fn on_datanode_create_regions(&mut self) -> Result<Status>
async fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourcepub fn table_info(&self) -> &RawTableInfo
sourcefn table_id(&self) -> TableId
sourcepub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+sourcepub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
sourcepub async fn on_datanode_create_regions(&mut self) -> Result<Status>
sourceasync fn on_create_metadata(&self) -> Result<Status>
fn execute<'life0, 'life1, 'async_trait>( +) -> Self
pub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
pub fn table_info(&self) -> &RawTableInfo
fn table_id(&self) -> TableId
pub fn region_routes(&self) -> &Vec<RegionRoute>
sourceasync fn on_prepare(&mut self) -> Result<Status>
async fn on_prepare(&mut self) -> Result<Status>
Checks whether the table exists.
+pub fn create_region_request_template(&self) -> Result<PbCreateRegionRequest>
pub async fn on_datanode_create_regions(&mut self) -> Result<Status>
async fn on_create_metadata(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for CreateTableProcedure
impl Procedure for CreateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>( &'life0 mut self, - _ctx: &'life1 ProcedureContext -) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where + _ctx: &'life1 ProcedureContext +) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, - 'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for CreateTableProcedure
impl Send for CreateTableProcedure
impl Sync for CreateTableProcedure
impl Unpin for CreateTableProcedure
impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CreateTableProcedure
impl Send for CreateTableProcedure
impl Sync for CreateTableProcedure
impl Unpin for CreateTableProcedure
impl !UnwindSafe for CreateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
index 2bfacccc38a8..a8bb1a352cf9 100644
--- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html
+++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html
@@ -7,15 +7,15 @@
table_route_value: DeserializedValueWithBytes<TableRouteValue>,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
context: DdlContext
-) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
fn conv<T>(self) -> Twhere diff --git a/common_meta/ddl/drop_table/struct.DropTableProcedure.html b/common_meta/ddl/drop_table/struct.DropTableProcedure.html index 2bfacccc38a8..a8bb1a352cf9 100644 --- a/common_meta/ddl/drop_table/struct.DropTableProcedure.html +++ b/common_meta/ddl/drop_table/struct.DropTableProcedure.html @@ -7,15 +7,15 @@ table_route_value: DeserializedValueWithBytes<TableRouteValue>, table_info_value: DeserializedValueWithBytes<TableInfoValue>, context: DdlContext -) -> Self
pub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
async fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
async fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
-sourceasync fn on_broadcast(&mut self) -> Result<Status>
async fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
-pub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
+) -> Self
sourcepub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+sourcepub async fn on_datanode_drop_regions(&self) -> Result<Status>
fn execute<'life0, 'life1, 'async_trait>( +) -> Self
pub fn from_json(json: &str, context: DdlContext) -> ProcedureResult<Self>
async fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_remove_metadata(&mut self) -> Result<Status>
async fn on_remove_metadata(&mut self) -> Result<Status>
Removes the table metadata.
+sourceasync fn on_broadcast(&mut self) -> Result<Status>
async fn on_broadcast(&mut self) -> Result<Status>
Broadcasts invalidate table cache instruction.
+pub async fn on_datanode_drop_regions(&self) -> Result<Status>
Trait Implementations§
source§impl Procedure for DropTableProcedure
impl Procedure for DropTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>( &'life0 mut self, - _ctx: &'life1 ProcedureContext -) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where + _ctx: &'life1 ProcedureContext +) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, - 'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for DropTableProcedure
impl Send for DropTableProcedure
impl Sync for DropTableProcedure
impl Unpin for DropTableProcedure
impl !UnwindSafe for DropTableProcedure
Blanket Implementations§
impl !RefUnwindSafe for DropTableProcedure
impl Send for DropTableProcedure
impl Sync for DropTableProcedure
impl Unpin for DropTableProcedure
impl !UnwindSafe for DropTableProcedure
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html
index 59c3a94ac605..731723fc53ce 100644
--- a/common_meta/ddl/trait.TableMetadataAllocator.html
+++ b/common_meta/ddl/trait.TableMetadataAllocator.html
@@ -5,7 +5,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
- ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -16,7 +16,7 @@
ctx: &'life1 TableMetadataAllocatorContext,
table_info: &'life2 mut RawTableInfo,
partitions: &'life3 [Partition]
-) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
index 03a7ef3be4a8..5a1936633300 100644
--- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
+++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html
@@ -10,13 +10,13 @@
) -> Self
sourcepub(crate) fn from_json(
json: &str,
context: DdlContext
-) -> ProcedureResult<Self>
sourceasync fn on_prepare(&mut self) -> Result<Status>
sourceasync fn on_datanode_truncate_regions(&mut self) -> Result<Status>
fn conv<T>(self) -> Twhere diff --git a/common_meta/ddl/trait.TableMetadataAllocator.html b/common_meta/ddl/trait.TableMetadataAllocator.html index 59c3a94ac605..731723fc53ce 100644 --- a/common_meta/ddl/trait.TableMetadataAllocator.html +++ b/common_meta/ddl/trait.TableMetadataAllocator.html @@ -5,7 +5,7 @@ ctx: &'life1 TableMetadataAllocatorContext, table_info: &'life2 mut RawTableInfo, partitions: &'life3 [Partition] - ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>> + ) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -16,7 +16,7 @@ ctx: &'life1 TableMetadataAllocatorContext, table_info: &'life2 mut RawTableInfo, partitions: &'life3 [Partition] -) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<(TableId, Vec<RegionRoute>)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, diff --git a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html index 03a7ef3be4a8..5a1936633300 100644 --- a/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html +++ b/common_meta/ddl/truncate_table/struct.TruncateTableProcedure.html @@ -10,13 +10,13 @@ ) -> Self
pub(crate) fn from_json( json: &str, context: DdlContext -) -> ProcedureResult<Self>
async fn on_prepare(&mut self) -> Result<Status>
async fn on_datanode_truncate_regions(&mut self) -> Result<Status>
source§impl Procedure for TruncateTableProcedure
impl Procedure for TruncateTableProcedure
source§impl Procedure for TruncateTableProcedure
impl Procedure for TruncateTableProcedure
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
- _ctx: &'life1 ProcedureContext
-) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
+ _ctx: &'life1 ProcedureContext
+) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>( &'life0 mut self, - _ctx: &'life1 ProcedureContext -) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where + _ctx: &'life1 ProcedureContext +) -> Pin<Box<dyn Future<Output = ProcedureResult<Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, - 'life1: 'async_trait,
impl !RefUnwindSafe for TruncateTableProcedure
impl Send for TruncateTableProcedure
impl Sync for TruncateTableProcedure
impl Unpin for TruncateTableProcedure
impl !UnwindSafe for TruncateTableProcedure
Auto Trait Implementations§
impl !RefUnwindSafe for TruncateTableProcedure
impl Send for TruncateTableProcedure
impl Sync for TruncateTableProcedure
impl Unpin for TruncateTableProcedure
impl !UnwindSafe for TruncateTableProcedure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
fn conv<T>(self) -> Twhere
diff --git a/common_meta/ddl/utils/fn.handle_retry_error.html b/common_meta/ddl/utils/fn.handle_retry_error.html
index 121050f59738..18d999ddae5b 100644
--- a/common_meta/ddl/utils/fn.handle_retry_error.html
+++ b/common_meta/ddl/utils/fn.handle_retry_error.html
@@ -1 +1 @@
-handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
+handle_retry_error in common_meta::ddl::utils - Rust Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
\ No newline at end of file
diff --git a/common_meta/ddl_manager/struct.DdlManager.html b/common_meta/ddl_manager/struct.DdlManager.html
index 6a1e8d8d00bc..51ae2f53b7ed 100644
--- a/common_meta/ddl_manager/struct.DdlManager.html
+++ b/common_meta/ddl_manager/struct.DdlManager.html
@@ -1,11 +1,11 @@
DdlManager in common_meta::ddl_manager - Rust Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
Function common_meta::ddl::utils::handle_retry_error
source · pub fn handle_retry_error(e: Error) -> Error
Struct common_meta::ddl_manager::DdlManager
source · pub struct DdlManager {
- procedure_manager: ProcedureManagerRef,
+ procedure_manager: ProcedureManagerRef,
datanode_manager: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
table_meta_allocator: TableMetadataAllocatorRef,
-}
Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
impl DdlManager
pub fn new(
- procedure_manager: ProcedureManagerRef,
+}Fields§
§procedure_manager: ProcedureManagerRef
§datanode_manager: DatanodeManagerRef
§cache_invalidator: CacheInvalidatorRef
§table_metadata_manager: TableMetadataManagerRef
§table_meta_allocator: TableMetadataAllocatorRef
Implementations§
source§impl DdlManager
sourcepub fn new(
+ procedure_manager: ProcedureManagerRef,
datanode_clients: DatanodeManagerRef,
cache_invalidator: CacheInvalidatorRef,
table_metadata_manager: TableMetadataManagerRef,
@@ -15,27 +15,27 @@
cluster_id: u64,
alter_table_task: AlterTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_create_table_task(
&self,
cluster_id: u64,
create_table_task: CreateTableTask,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_drop_table_task(
&self,
cluster_id: u64,
drop_table_task: DropTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
table_route_value: DeserializedValueWithBytes<TableRouteValue>
-) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
+) -> Result<ProcedureId>
sourcepub async fn submit_truncate_table_task(
&self,
cluster_id: u64,
truncate_table_task: TruncateTableTask,
table_info_value: DeserializedValueWithBytes<TableInfoValue>,
region_routes: Vec<RegionRoute>
-) -> Result<ProcedureId>
sourceasync fn submit_procedure(
+) -> Result<ProcedureId>
sourceasync fn submit_procedure(
&self,
- procedure_with_id: ProcedureWithId
-) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
+ procedure_with_id: ProcedureWithId
+) -> Result<ProcedureId>
Trait Implementations§
source§impl DdlTaskExecutor for DdlManager
source§fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
source§impl DdlManager
impl DdlManager
pub fn new( + procedure_manager: ProcedureManagerRef, datanode_clients: DatanodeManagerRef, cache_invalidator: CacheInvalidatorRef, table_metadata_manager: TableMetadataManagerRef, @@ -15,27 +15,27 @@ cluster_id: u64, alter_table_task: AlterTableTask, table_info_value: DeserializedValueWithBytes<TableInfoValue> -) -> Result<ProcedureId>
pub async fn submit_create_table_task( +) -> Result<ProcedureId>
pub async fn submit_create_table_task( &self, cluster_id: u64, create_table_task: CreateTableTask, region_routes: Vec<RegionRoute> -) -> Result<ProcedureId>
pub async fn submit_drop_table_task( +) -> Result<ProcedureId>
pub async fn submit_drop_table_task( &self, cluster_id: u64, drop_table_task: DropTableTask, table_info_value: DeserializedValueWithBytes<TableInfoValue>, table_route_value: DeserializedValueWithBytes<TableRouteValue> -) -> Result<ProcedureId>
pub async fn submit_truncate_table_task( +) -> Result<ProcedureId>
pub async fn submit_truncate_table_task( &self, cluster_id: u64, truncate_table_task: TruncateTableTask, table_info_value: DeserializedValueWithBytes<TableInfoValue>, region_routes: Vec<RegionRoute> -) -> Result<ProcedureId>
async fn submit_procedure( +) -> Result<ProcedureId>
async fn submit_procedure( &self, - procedure_with_id: ProcedureWithId -) -> Result<ProcedureId>
source§impl DdlTaskExecutor for DdlManager
impl DdlTaskExecutor for DdlManager
fn submit_ddl_task<'life0, 'life1, 'async_trait>( + procedure_with_id: ProcedureWithId +) -> Result<ProcedureId>
source§impl DdlTaskExecutor for DdlManager
impl DdlTaskExecutor for DdlManager
fn submit_ddl_task<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ExecutorContext,
request: SubmitDdlTaskRequest
diff --git a/common_meta/error/enum.Error.html b/common_meta/error/enum.Error.html
index b72cf80c534a..ab463f06b228 100644
--- a/common_meta/error/enum.Error.html
+++ b/common_meta/error/enum.Error.html
@@ -35,11 +35,11 @@
RegisterProcedureLoader {
type_name: String,
location: Location,
- source: Error,
+ source: Error,
},
SubmitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
Unsupported {
operation: String,
@@ -47,7 +47,7 @@
},
WaitProcedure {
location: Location,
- source: Error,
+ source: Error,
},
ConvertRawTableInfo {
location: Location,
@@ -161,7 +161,7 @@
},
MoveRegion {
table_id: TableId,
- region: RegionNumber,
+ region: RegionNumber,
err_msg: String,
location: Location,
},
@@ -184,7 +184,7 @@
RetryLater {
source: BoxedError,
},
-}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
+}Variants§
§EmptyKey
Fields
§location: Location
§InvalidTxnResult
§ConnectEtcd
§EtcdFailed
§NextSequence
§SequenceOutOfRange
§UnexpectedSequenceValue
§TableInfoNotFound
§RegisterProcedureLoader
§SubmitProcedure
§Unsupported
§WaitProcedure
§ConvertRawTableInfo
§PrimaryKeyNotFound
§BuildTableMeta
§Table
§TableRouteNotFound
§DecodeProto
§EncodeJson
§DecodeJson
§PayloadNotExist
Fields
§location: Location
§SendMessage
§SerdeJson
§ParseOption
§RouteInfoCorrupted
§IllegalServerState
§ConvertAlterTableRequest
§InvalidProtoMsg
§Unexpected
§TableAlreadyExists
§CatalogAlreadyExists
§SchemaAlreadyExists
§ConvertRawKey
§TableNotFound
§RenameTable
§InvalidTableMetadata
§GetKvCache
§CacheNotGet
§EtcdTxnOpResponse
§MoveRegion
§InvalidCatalogValue
§External
§InvalidHeartbeatResponse
Fields
§location: Location
§OperateDatanode
§RetryLater
Fields
§source: BoxedError
Implementations§
source§impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
§type Source = BoxedError
The underlying errorsource§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
source§impl StackError for Error
source§fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
source§fn next(&self) -> Option<&dyn StackError>
source§fn last(&self) -> &dyn StackErrorwhere
+ Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
diff --git a/common_meta/error/struct.MoveRegionSnafu.html b/common_meta/error/struct.MoveRegionSnafu.html
index e17fc1994b57..df75f3551a3e 100644
--- a/common_meta/error/struct.MoveRegionSnafu.html
+++ b/common_meta/error/struct.MoveRegionSnafu.html
@@ -5,16 +5,16 @@
}Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
source§impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
§impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
EmptyKey
Fields
location: Location
InvalidTxnResult
ConnectEtcd
EtcdFailed
NextSequence
SequenceOutOfRange
UnexpectedSequenceValue
TableInfoNotFound
RegisterProcedureLoader
SubmitProcedure
Unsupported
WaitProcedure
ConvertRawTableInfo
PrimaryKeyNotFound
BuildTableMeta
Table
TableRouteNotFound
DecodeProto
EncodeJson
DecodeJson
PayloadNotExist
Fields
location: Location
SendMessage
SerdeJson
ParseOption
RouteInfoCorrupted
IllegalServerState
ConvertAlterTableRequest
InvalidProtoMsg
Unexpected
TableAlreadyExists
CatalogAlreadyExists
SchemaAlreadyExists
ConvertRawKey
TableNotFound
RenameTable
InvalidTableMetadata
GetKvCache
CacheNotGet
EtcdTxnOpResponse
MoveRegion
InvalidCatalogValue
External
InvalidHeartbeatResponse
Fields
location: Location
OperateDatanode
RetryLater
Fields
source: BoxedError
source§impl Error
impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
pub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
Variants§
EmptyKey
Fields
location: Location
InvalidTxnResult
ConnectEtcd
EtcdFailed
NextSequence
SequenceOutOfRange
UnexpectedSequenceValue
TableInfoNotFound
RegisterProcedureLoader
SubmitProcedure
Unsupported
WaitProcedure
ConvertRawTableInfo
PrimaryKeyNotFound
BuildTableMeta
Table
TableRouteNotFound
DecodeProto
EncodeJson
DecodeJson
PayloadNotExist
Fields
location: Location
SendMessage
SerdeJson
ParseOption
RouteInfoCorrupted
IllegalServerState
ConvertAlterTableRequest
InvalidProtoMsg
Unexpected
TableAlreadyExists
CatalogAlreadyExists
SchemaAlreadyExists
ConvertRawKey
TableNotFound
RenameTable
InvalidTableMetadata
GetKvCache
CacheNotGet
EtcdTxnOpResponse
MoveRegion
InvalidCatalogValue
External
InvalidHeartbeatResponse
Fields
location: Location
OperateDatanode
RetryLater
Fields
source: BoxedError
Implementations§
source§impl Error
impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
pub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
pub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through StatusCode
sourcepub fn is_exceeded_size_limit(&self) -> bool
pub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where Error: Error + ErrorCompat, __T0: Into<TableId>, - __T1: Into<RegionNumber>, + __T1: Into<RegionNumber>, __T2: Into<String>,
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>where Error: Error + ErrorCompat, __T0: Into<String>,
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where
@@ -241,7 +241,7 @@
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>where @@ -241,7 +241,7 @@ Error: Error + ErrorCompat, __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where Error: Error + ErrorCompat, - __T0: Into<String>,
source§impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<Error> for RenameTableSnafu<__T0>where Error: Error + ErrorCompat, __T0: Into<String>,
source§impl IntoError<Error> for RetryLaterSnafuwhere
Error: Error + ErrorCompat,
impl IntoError<Error> for RetryLaterSnafuwhere Error: Error + ErrorCompat,
§type Source = BoxedError
type Source = BoxedError
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
source§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where
@@ -257,7 +257,7 @@
__T1: Into<u64>,
__T2: Into<u64>,
impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>where @@ -257,7 +257,7 @@ __T1: Into<u64>, __T2: Into<u64>,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
+ Error: Error + ErrorCompat,
impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where + Error: Error + ErrorCompat,
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>where Error: Error + ErrorCompat, __T0: Into<String>,
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where
Error: Error + ErrorCompat,
@@ -273,7 +273,7 @@
__T0: Into<String>,
impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>where Error: Error + ErrorCompat, @@ -273,7 +273,7 @@ __T0: Into<String>,
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where
Error: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>where Error: Error + ErrorCompat, __T0: Into<String>,
source§impl StackError for Error
impl StackError for Error
fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
fn next(&self) -> Option<&dyn StackError>
fn last(&self) -> &dyn StackErrorwhere + Error: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
Expand description
SNAFU context selector for the Error::MoveRegion
variant
Fields§
§table_id: __T0
§region: __T1
§err_msg: __T2
Implementations§
Trait Implementations§
source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MoveRegionSnafu<__T0, __T1, __T2>
source§fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
fn clone(&self) -> MoveRegionSnafu<__T0, __T1, __T2>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where
Error: Error + ErrorCompat,
__T0: Into<TableId>,
- __T1: Into<RegionNumber>,
+ __T1: Into<RegionNumber>,
__T2: Into<String>,
impl<__T0, __T1, __T2> IntoError<Error> for MoveRegionSnafu<__T0, __T1, __T2>where Error: Error + ErrorCompat, __T0: Into<TableId>, - __T1: Into<RegionNumber>, + __T1: Into<RegionNumber>, __T2: Into<String>,
impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MoveRegionSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
impl<__T0, __T1, __T2> RefUnwindSafe for MoveRegionSnafu<__T0, __T1, __T2>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
diff --git a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
index 7be768253193..2e3e25fc47bd 100644
--- a/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
+++ b/common_meta/error/struct.RegisterProcedureLoaderSnafu.html
@@ -3,7 +3,7 @@
}Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
Fields§
§type_name: __T0
Trait Implementations§
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
source§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
+ __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the errorsource§impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
Auto Trait Implementations§
§impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where
__T0: RefUnwindSafe,
§impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where
__T0: Send,
§impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where
__T0: Sync,
§impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
Expand description
SNAFU context selector for the Error::RegisterProcedureLoader
variant
source§impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
impl<__T0: Clone> Clone for RegisterProcedureLoaderSnafu<__T0>
source§fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
fn clone(&self) -> RegisterProcedureLoaderSnafu<__T0>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
impl<__T0: Debug> Debug for RegisterProcedureLoaderSnafu<__T0>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where
Error: Error + ErrorCompat,
- __T0: Into<String>,
impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>where Error: Error + ErrorCompat, - __T0: Into<String>,
impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where + __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
impl<__T0: Copy> Copy for RegisterProcedureLoaderSnafu<__T0>
impl<__T0> RefUnwindSafe for RegisterProcedureLoaderSnafu<__T0>where __T0: RefUnwindSafe,
impl<__T0> Send for RegisterProcedureLoaderSnafu<__T0>where __T0: Send,
impl<__T0> Sync for RegisterProcedureLoaderSnafu<__T0>where __T0: Sync,
impl<__T0> Unpin for RegisterProcedureLoaderSnafu<__T0>where
diff --git a/common_meta/error/struct.SubmitProcedureSnafu.html b/common_meta/error/struct.SubmitProcedureSnafu.html
index 23902ed0ff30..b33ef16c5e20 100644
--- a/common_meta/error/struct.SubmitProcedureSnafu.html
+++ b/common_meta/error/struct.SubmitProcedureSnafu.html
@@ -1,6 +1,6 @@
SubmitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SubmitProcedureSnafu
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for SubmitProcedureSnafu
§impl Send for SubmitProcedureSnafu
§impl Sync for SubmitProcedureSnafu
§impl Unpin for SubmitProcedureSnafu
§impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
Struct common_meta::error::SubmitProcedureSnafu
source · pub struct SubmitProcedureSnafu;
Expand description
SNAFU context selector for the Error::SubmitProcedure
variant
Trait Implementations§
source§impl Clone for SubmitProcedureSnafu
impl Clone for SubmitProcedureSnafu
source§fn clone(&self) -> SubmitProcedureSnafu
fn clone(&self) -> SubmitProcedureSnafu
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SubmitProcedureSnafu
impl Debug for SubmitProcedureSnafu
impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
impl RefUnwindSafe for SubmitProcedureSnafu
impl Send for SubmitProcedureSnafu
impl Sync for SubmitProcedureSnafu
impl Unpin for SubmitProcedureSnafu
impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
impl Copy for SubmitProcedureSnafu
Auto Trait Implementations§
impl RefUnwindSafe for SubmitProcedureSnafu
impl Send for SubmitProcedureSnafu
impl Sync for SubmitProcedureSnafu
impl Unpin for SubmitProcedureSnafu
impl UnwindSafe for SubmitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
fn conv<T>(self) -> Twhere
diff --git a/common_meta/error/struct.WaitProcedureSnafu.html b/common_meta/error/struct.WaitProcedureSnafu.html
index 7118e64326a1..e6952ca41a31 100644
--- a/common_meta/error/struct.WaitProcedureSnafu.html
+++ b/common_meta/error/struct.WaitProcedureSnafu.html
@@ -1,6 +1,6 @@
WaitProcedureSnafu in common_meta::error - Rust Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for WaitProcedureSnafu
source§impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for WaitProcedureSnafu
§impl Send for WaitProcedureSnafu
§impl Sync for WaitProcedureSnafu
§impl Unpin for WaitProcedureSnafu
§impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
Struct common_meta::error::WaitProcedureSnafu
source · pub struct WaitProcedureSnafu;
Expand description
SNAFU context selector for the Error::WaitProcedure
variant
Trait Implementations§
source§impl Clone for WaitProcedureSnafu
impl Clone for WaitProcedureSnafu
source§fn clone(&self) -> WaitProcedureSnafu
fn clone(&self) -> WaitProcedureSnafu
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WaitProcedureSnafu
impl Debug for WaitProcedureSnafu
impl Copy for WaitProcedureSnafu
Auto Trait Implementations§
impl RefUnwindSafe for WaitProcedureSnafu
impl Send for WaitProcedureSnafu
impl Sync for WaitProcedureSnafu
impl Unpin for WaitProcedureSnafu
impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for WaitProcedureSnafu
impl Send for WaitProcedureSnafu
impl Sync for WaitProcedureSnafu
impl Unpin for WaitProcedureSnafu
impl UnwindSafe for WaitProcedureSnafu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
fn conv<T>(self) -> Twhere
diff --git a/common_meta/instruction/struct.RegionIdent.html b/common_meta/instruction/struct.RegionIdent.html
index 0a5c24bbbee2..e54de17e20b5 100644
--- a/common_meta/instruction/struct.RegionIdent.html
+++ b/common_meta/instruction/struct.RegionIdent.html
@@ -2,9 +2,9 @@
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
- pub region_number: RegionNumber,
+ pub region_number: RegionNumber,
pub engine: String,
-}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
source§impl RegionIdent
impl RegionIdent
pub fn get_region_id(&self) -> RegionId
source§impl Clone for RegionIdent
impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
fn clone(&self) -> RegionIdent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegionIdent
impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§cluster_id: ClusterId
§datanode_id: DatanodeId
§table_id: TableId
§region_number: RegionNumber
§engine: String
Implementations§
source§impl RegionIdent
sourcepub fn get_region_id(&self) -> RegionId
Trait Implementations§
source§impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for RegionIdent
source§impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
DatanodeTableValue in common_meta::key::datanode_table - Rust Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
source§impl RegionIdent
impl RegionIdent
pub fn get_region_id(&self) -> RegionId
source§impl Clone for RegionIdent
impl Clone for RegionIdent
source§fn clone(&self) -> RegionIdent
fn clone(&self) -> RegionIdent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegionIdent
impl Debug for RegionIdent
source§impl<'de> Deserialize<'de> for RegionIdent
impl<'de> Deserialize<'de> for RegionIdent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Display for RegionIdent
impl Display for RegionIdent
source§impl Hash for RegionIdent
impl Hash for RegionIdent
source§impl PartialEq<RegionIdent> for RegionIdent
impl PartialEq<RegionIdent> for RegionIdent
source§fn eq(&self, other: &RegionIdent) -> bool
fn eq(&self, other: &RegionIdent) -> bool
self
and other
values to be equal, and is used
diff --git a/common_meta/key/datanode_table/struct.DatanodeTableValue.html b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
index facd1d15fc96..72599c391456 100644
--- a/common_meta/key/datanode_table/struct.DatanodeTableValue.html
+++ b/common_meta/key/datanode_table/struct.DatanodeTableValue.html
@@ -1,11 +1,11 @@
Struct common_meta::key::datanode_table::DatanodeTableValue
source · pub struct DatanodeTableValue {
pub table_id: TableId,
- pub regions: Vec<RegionNumber>,
+ pub regions: Vec<RegionNumber>,
pub region_info: RegionInfo,
version: u64,
-}
Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
impl DatanodeTableValue
pub fn new(
+}Fields§
§table_id: TableId
§regions: Vec<RegionNumber>
§region_info: RegionInfo
§version: u64
Implementations§
source§impl DatanodeTableValue
sourcepub fn new(
table_id: TableId,
- regions: Vec<RegionNumber>,
+ regions: Vec<RegionNumber>,
region_info: RegionInfo
) -> Self
source§impl DatanodeTableValue
sourcepub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
sourcepub fn try_as_raw_value(&self) -> Result<Vec<u8>>
Trait Implementations§
source§impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust
source§impl DatanodeTableValue
impl DatanodeTableValue
pub fn new( table_id: TableId, - regions: Vec<RegionNumber>, + regions: Vec<RegionNumber>, region_info: RegionInfo ) -> Self
source§impl DatanodeTableValue
impl DatanodeTableValue
pub fn try_from_raw_value(raw_value: &[u8]) -> Result<Self>
pub fn try_as_raw_value(&self) -> Result<Vec<u8>>
source§impl Clone for DatanodeTableValue
impl Clone for DatanodeTableValue
source§fn clone(&self) -> DatanodeTableValue
fn clone(&self) -> DatanodeTableValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DatanodeTableValue
impl Debug for DatanodeTableValue
source§impl<'de> Deserialize<'de> for DatanodeTableValue
impl<'de> Deserialize<'de> for DatanodeTableValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<DatanodeTableValue> for DatanodeTableValue
impl PartialEq<DatanodeTableValue> for DatanodeTableValue
source§fn eq(&self, other: &DatanodeTableValue) -> bool
fn eq(&self, other: &DatanodeTableValue) -> bool
self
and other
values to be equal, and is used
diff --git a/common_meta/key/table_region/type.RegionDistribution.html b/common_meta/key/table_region/type.RegionDistribution.html
index e2b02a4e6983..0564ca86bc4b 100644
--- a/common_meta/key/table_region/type.RegionDistribution.html
+++ b/common_meta/key/table_region/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key::table_region - Rust Type Alias common_meta::key::table_region::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/key/test_utils/fn.new_test_table_info.html b/common_meta/key/test_utils/fn.new_test_table_info.html
index be599538ffb9..7e0fb43f4bc4 100644
--- a/common_meta/key/test_utils/fn.new_test_table_info.html
+++ b/common_meta/key/test_utils/fn.new_test_table_info.html
@@ -1,4 +1,4 @@
new_test_table_info in common_meta::key::test_utils - Rust Function common_meta::key::test_utils::new_test_table_info
source · pub fn new_test_table_info<I: IntoIterator<Item = u32>>(
- table_id: TableId,
+ table_id: TableId,
region_numbers: I
) -> TableInfo
\ No newline at end of file
diff --git a/common_meta/key/type.RegionDistribution.html b/common_meta/key/type.RegionDistribution.html
index a76ad6b3f309..bcac375a0654 100644
--- a/common_meta/key/type.RegionDistribution.html
+++ b/common_meta/key/type.RegionDistribution.html
@@ -1,4 +1,4 @@
-RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
+RegionDistribution in common_meta::key - Rust Type Alias common_meta::key::RegionDistribution
source · pub type RegionDistribution = BTreeMap<DatanodeId, Vec<RegionNumber>>;
Aliased Type§
struct RegionDistribution {
root: Option<NodeRef<Owned, u64, Vec<u32, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
index 3ea50c824d44..7e125ba81643 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_map.html
@@ -1,5 +1,5 @@
convert_to_region_leader_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_map
source · pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, &Peer>
Expand description
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
index 38f66f2361b7..b88115bdb135 100644
--- a/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_leader_status_map.html
@@ -1,4 +1,4 @@
convert_to_region_leader_status_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_leader_status_map
source · pub fn convert_to_region_leader_status_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, RegionStatus>
Expand description
Returns the HashMap<RegionNumber, RegionStatus>;
+) -> HashMap<RegionNumber, RegionStatus>Expand description
Returns the HashMap<[RegionNumber], RegionStatus>;
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.convert_to_region_peer_map.html b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
index 3e4fc57c4e41..6bb1e0a5a75e 100644
--- a/common_meta/rpc/router/fn.convert_to_region_peer_map.html
+++ b/common_meta/rpc/router/fn.convert_to_region_peer_map.html
@@ -1,4 +1,4 @@
convert_to_region_peer_map in common_meta::rpc::router - Rust Function common_meta::rpc::router::convert_to_region_peer_map
source · pub fn convert_to_region_peer_map(
region_routes: &[RegionRoute]
-) -> HashMap<RegionNumber, HashSet<u64>>
Expand description
Returns the HashMap<RegionNumber, HashSet>
+) -> HashMap<RegionNumber, HashSet<u64>>Expand description
Returns the HashMap<[RegionNumber], HashSet>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_leader_regions.html b/common_meta/rpc/router/fn.find_leader_regions.html
index 66d90a2bdcfd..cb39c155a6c7 100644
--- a/common_meta/rpc/router/fn.find_leader_regions.html
+++ b/common_meta/rpc/router/fn.find_leader_regions.html
@@ -1,4 +1,4 @@
find_leader_regions in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_leader_regions
source · pub fn find_leader_regions(
region_routes: &[RegionRoute],
datanode: &Peer
-) -> Vec<RegionNumber>
\ No newline at end of file
+) -> Vec<RegionNumber>
\ No newline at end of file
diff --git a/common_meta/rpc/router/fn.find_region_leader.html b/common_meta/rpc/router/fn.find_region_leader.html
index 33c7f122bc90..b736c2ef3432 100644
--- a/common_meta/rpc/router/fn.find_region_leader.html
+++ b/common_meta/rpc/router/fn.find_region_leader.html
@@ -1,4 +1,4 @@
find_region_leader in common_meta::rpc::router - Rust Function common_meta::rpc::router::find_region_leader
source · pub fn find_region_leader(
region_routes: &[RegionRoute],
- region_number: RegionNumber
+ region_number: RegionNumber
) -> Option<&Peer>
\ No newline at end of file
diff --git a/common_meta/rpc/router/index.html b/common_meta/rpc/router/index.html
index e7c96619b975..a7ce8fc32a4e 100644
--- a/common_meta/rpc/router/index.html
+++ b/common_meta/rpc/router/index.html
@@ -1 +1 @@
-common_meta::rpc::router - Rust Module common_meta::rpc::router
source · Structs
Enums
- The Status of the Region.
Functions
- as_utf8 🔒
- Returns the HashMap<RegionNumber, &Peer>;
- Returns the HashMap<RegionNumber, RegionStatus>;
- Returns the HashMap<RegionNumber, HashSet
>
\ No newline at end of file
+common_meta::rpc::router - Rust
\ No newline at end of file
diff --git a/common_meta/rpc/router/struct.Region.html b/common_meta/rpc/router/struct.Region.html
index b64a345ce679..76ffb9f04ecf 100644
--- a/common_meta/rpc/router/struct.Region.html
+++ b/common_meta/rpc/router/struct.Region.html
@@ -1,9 +1,9 @@
Region in common_meta::rpc::router - Rust Struct common_meta::rpc::router::Region
source · pub struct Region {
- pub id: RegionId,
+ pub id: RegionId,
pub name: String,
pub partition: Option<Partition>,
pub attrs: BTreeMap<String, String>,
-}
Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§id: RegionId
§name: String
§partition: Option<Partition>
§attrs: BTreeMap<String, String>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<Region> for Region
source§impl Serialize for Region
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/rpc/router/struct.RegionRoutes.html b/common_meta/rpc/router/struct.RegionRoutes.html
index 66586d321e88..696fbab638ca 100644
--- a/common_meta/rpc/router/struct.RegionRoutes.html
+++ b/common_meta/rpc/router/struct.RegionRoutes.html
@@ -1,4 +1,4 @@
-RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> Any for Twhere
+RegionRoutes in common_meta::rpc::router - Rust Struct common_meta::rpc::router::RegionRoutes
source · pub struct RegionRoutes(pub Vec<RegionRoute>);
Tuple Fields§
§0: Vec<RegionRoute>
Implementations§
source§impl RegionRoutes
sourcepub fn region_leader_map(&self) -> HashMap<RegionNumber, &Peer>
sourcepub fn find_region_leader(&self, region_number: RegionNumber) -> Option<&Peer>
Auto Trait Implementations§
§impl RefUnwindSafe for RegionRoutes
§impl Send for RegionRoutes
§impl Sync for RegionRoutes
§impl Unpin for RegionRoutes
§impl UnwindSafe for RegionRoutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CompatExt for T
§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/common_meta/rpc/router/struct.TableRoute.html b/common_meta/rpc/router/struct.TableRoute.html
index c05e7293eaa8..8370dca0d105 100644
--- a/common_meta/rpc/router/struct.TableRoute.html
+++ b/common_meta/rpc/router/struct.TableRoute.html
@@ -1,8 +1,8 @@
TableRoute in common_meta::rpc::router - Rust Struct common_meta::rpc::router::TableRoute
source · pub struct TableRoute {
pub table: Table,
pub region_routes: Vec<RegionRoute>,
- region_leaders: HashMap<RegionNumber, Option<Peer>>,
-}
Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ region_leaders: HashMap<RegionNumber, Option<Peer>>,
+}Fields§
§table: Table
§region_routes: Vec<RegionRoute>
§region_leaders: HashMap<RegionNumber, Option<Peer>>
Implementations§
source§impl TableRoute
sourcepub fn new(table: Table, region_routes: Vec<RegionRoute>) -> Self
sourcepub fn try_from_raw(peers: &[PbPeer], table_route: PbTableRoute) -> Result<Self>
Trait Implementations§
source§impl Clone for TableRoute
source§fn clone(&self) -> TableRoute
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TableRoute
source§impl<'de> Deserialize<'de> for TableRoute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TableRoute> for TableRoute
source§fn eq(&self, other: &TableRoute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableRoute
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/common_meta/state_store/struct.KvStateStore.html b/common_meta/state_store/struct.KvStateStore.html
index d00b587ecf7c..2e0b4edf7541 100644
--- a/common_meta/state_store/struct.KvStateStore.html
+++ b/common_meta/state_store/struct.KvStateStore.html
@@ -1,29 +1,29 @@
KvStateStore in common_meta::state_store - Rust Struct common_meta::state_store::KvStateStore
source · pub struct KvStateStore {
kv_backend: KvBackendRef,
max_size_per_range: usize,
-}
Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
+}Fields§
§kv_backend: KvBackendRef
§max_size_per_range: usize
Implementations§
source§impl KvStateStore
sourcepub fn new(kv_backend: KvBackendRef) -> Self
Trait Implementations§
source§impl StateStore for KvStateStore
source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Vec<u8>
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Puts key
and value
into the store.source§fn walk_top_down<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<KeyValueStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Returns the key-value pairs under path
in top down way. Read moresource§fn batch_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String]
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
- 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
+ 'life1: 'async_trait,
Deletes key-value pairs by keys
.source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
-) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = ProcedureResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes one key-value pair by key
. Return Ok
if the key
diff --git a/common_query/enum.Output.html b/common_query/enum.Output.html
index 522c0c024c1b..582cb2e59b5d 100644
--- a/common_query/enum.Output.html
+++ b/common_query/enum.Output.html
@@ -1,8 +1,8 @@
Output in common_query - Rust