MCPcopy Create free account
hub / github.com/apache/paimon-rust / load_table_token

Method load_table_token

crates/paimon/src/api/rest_api.rs:442–451  ·  view source on GitHub ↗

Load table token for data access. Corresponds to Python `RESTApi.load_table_token`.

(
        &self,
        identifier: &Identifier,
    )

Source from the content-addressed store, hash-verified

440 ///
441 /// Corresponds to Python `RESTApi.load_table_token`.
442 pub async fn load_table_token(
443 &self,
444 identifier: &Identifier,
445 ) -> Result<super::api_response::GetTableTokenResponse> {
446 let database = identifier.database();
447 let table = identifier.object();
448 validate_non_empty_multi(&[(database, "database name"), (table, "table name")])?;
449 let path = self.resource_paths.table_token(database, table);
450 self.client.get(&path, None::<&[(&str, &str)]>).await
451 }
452
453 // ==================== Commit Operations ====================
454

Callers 1

refresh_tokenMethod · 0.80

Calls 5

validate_non_empty_multiFunction · 0.85
objectMethod · 0.80
table_tokenMethod · 0.80
databaseMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected