Skip to content

Commit b4570de

Browse files
committed
deploy: 4eafd2c
1 parent 243a4e0 commit b4570de

File tree

114 files changed

+31429
-31645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+31429
-31645
lines changed

api.html

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,7 @@ <h2 id="restcatalog"><a class="header" href="#restcatalog"><code>RestCatalog</co
260260
<span class="boring">
261261
</span><span class="boring"> // List all namespaces already in the catalog.
262262
</span><span class="boring"> let existing_namespaces = catalog.list_namespaces(None).await.unwrap();
263-
</span><span class="boring"> println!(
264-
</span><span class="boring"> &quot;Namespaces alreading in the existing catalog: {:?}&quot;,
265-
</span><span class="boring"> existing_namespaces
266-
</span><span class="boring"> );
263+
</span><span class="boring"> println!(&quot;Namespaces alreading in the existing catalog: {existing_namespaces:?}&quot;);
267264
</span><span class="boring">
268265
</span><span class="boring"> // Create a new namespace identifier.
269266
</span><span class="boring"> let namespace_ident =
@@ -283,10 +280,10 @@ <h2 id="restcatalog"><a class="header" href="#restcatalog"><code>RestCatalog</co
283280
</span><span class="boring"> )
284281
</span><span class="boring"> .await
285282
</span><span class="boring"> .unwrap();
286-
</span><span class="boring"> println!(&quot;Namespace {:?} created!&quot;, namespace_ident);
283+
</span><span class="boring"> println!(&quot;Namespace {namespace_ident:?} created!&quot;);
287284
</span><span class="boring">
288285
</span><span class="boring"> let loaded_namespace = catalog.get_namespace(&amp;namespace_ident).await.unwrap();
289-
</span><span class="boring"> println!(&quot;Namespace loaded!\n\nNamespace: {:#?}&quot;, loaded_namespace,);
286+
</span><span class="boring"> println!(&quot;Namespace loaded!\n\nNamespace: {loaded_namespace:#?}&quot;,);
290287
</span><span class="boring">}</span></code></pre>
291288
<p>You can run following code to list all root namespaces:</p>
292289
<pre><code class="language-rust no_run noplayground"><span class="boring">// Licensed to the Apache Software Foundation (ASF) under one
@@ -333,10 +330,7 @@ <h2 id="restcatalog"><a class="header" href="#restcatalog"><code>RestCatalog</co
333330
</span><span class="boring">
334331
</span> // List all namespaces already in the catalog.
335332
let existing_namespaces = catalog.list_namespaces(None).await.unwrap();
336-
println!(
337-
&quot;Namespaces alreading in the existing catalog: {:?}&quot;,
338-
existing_namespaces
339-
);
333+
println!(&quot;Namespaces alreading in the existing catalog: {existing_namespaces:?}&quot;);
340334
<span class="boring">
341335
</span><span class="boring"> // Create a new namespace identifier.
342336
</span><span class="boring"> let namespace_ident =
@@ -356,10 +350,10 @@ <h2 id="restcatalog"><a class="header" href="#restcatalog"><code>RestCatalog</co
356350
</span><span class="boring"> )
357351
</span><span class="boring"> .await
358352
</span><span class="boring"> .unwrap();
359-
</span><span class="boring"> println!(&quot;Namespace {:?} created!&quot;, namespace_ident);
353+
</span><span class="boring"> println!(&quot;Namespace {namespace_ident:?} created!&quot;);
360354
</span><span class="boring">
361355
</span><span class="boring"> let loaded_namespace = catalog.get_namespace(&amp;namespace_ident).await.unwrap();
362-
</span><span class="boring"> println!(&quot;Namespace loaded!\n\nNamespace: {:#?}&quot;, loaded_namespace,);
356+
</span><span class="boring"> println!(&quot;Namespace loaded!\n\nNamespace: {loaded_namespace:#?}&quot;,);
363357
</span><span class="boring">}</span></code></pre>
364358
<p>Then you can run following code to create namespace:</p>
365359
<pre><code class="language-rust no_run noplayground"><span class="boring">// Licensed to the Apache Software Foundation (ASF) under one
@@ -406,10 +400,7 @@ <h2 id="restcatalog"><a class="header" href="#restcatalog"><code>RestCatalog</co
406400
</span><span class="boring">
407401
</span><span class="boring"> // List all namespaces already in the catalog.
408402
</span><span class="boring"> let existing_namespaces = catalog.list_namespaces(None).await.unwrap();
409-
</span><span class="boring"> println!(
410-
</span><span class="boring"> &quot;Namespaces alreading in the existing catalog: {:?}&quot;,
411-
</span><span class="boring"> existing_namespaces
412-
</span><span class="boring"> );
403+
</span><span class="boring"> println!(&quot;Namespaces alreading in the existing catalog: {existing_namespaces:?}&quot;);
413404
</span><span class="boring">
414405
</span> // Create a new namespace identifier.
415406
let namespace_ident =
@@ -429,10 +420,10 @@ <h2 id="restcatalog"><a class="header" href="#restcatalog"><code>RestCatalog</co
429420
)
430421
.await
431422
.unwrap();
432-
println!(&quot;Namespace {:?} created!&quot;, namespace_ident);
423+
println!(&quot;Namespace {namespace_ident:?} created!&quot;);
433424

434425
let loaded_namespace = catalog.get_namespace(&amp;namespace_ident).await.unwrap();
435-
println!(&quot;Namespace loaded!\n\nNamespace: {:#?}&quot;, loaded_namespace,);
426+
println!(&quot;Namespace loaded!\n\nNamespace: {loaded_namespace:#?}&quot;,);
436427
<span class="boring">}</span></code></pre>
437428
<h1 id="table"><a class="header" href="#table">Table</a></h1>
438429
<p>After creating <code>Catalog</code>, we can manipulate tables through <code>Catalog</code>.</p>
@@ -532,7 +523,7 @@ <h1 id="table"><a class="header" href="#table">Table</a></h1>
532523
</span><span class="boring">
533524
</span><span class="boring"> // Load the table back from the catalog. It should be identical to the created table.
534525
</span><span class="boring"> let loaded_table = catalog.load_table(&amp;table_ident).await.unwrap();
535-
</span><span class="boring"> println!(&quot;Table {TABLE_NAME} loaded!\n\nTable: {:?}&quot;, loaded_table);
526+
</span><span class="boring"> println!(&quot;Table {TABLE_NAME} loaded!\n\nTable: {loaded_table:?}&quot;);
536527
</span><span class="boring">}</span></code></pre>
537528
<p>Also, you can load a table directly:</p>
538529
<pre><code class="language-rust no_run noplayground"><span class="boring">// Licensed to the Apache Software Foundation (ASF) under one
@@ -630,7 +621,7 @@ <h1 id="table"><a class="header" href="#table">Table</a></h1>
630621

631622
// Load the table back from the catalog. It should be identical to the created table.
632623
let loaded_table = catalog.load_table(&amp;table_ident).await.unwrap();
633-
println!(&quot;Table {TABLE_NAME} loaded!\n\nTable: {:?}&quot;, loaded_table);
624+
println!(&quot;Table {TABLE_NAME} loaded!\n\nTable: {loaded_table:?}&quot;);
634625
<span class="boring">}</span></code></pre>
635626

636627
</main>

0 commit comments

Comments
 (0)