Skip to content

Commit

Permalink
Python docs for e8323ac
Browse files Browse the repository at this point in the history
  • Loading branch information
github-action-deploy-python-docs committed Dec 13, 2024
1 parent c3a911f commit 816eb4d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/rust/.rustc_info.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"rustc_fingerprint":2181896928837641681,"outputs":{"16992575326180275217":{"success":true,"status":"","code":0,"stdout":"rustc 1.83.0-nightly (d6c8169c1 2024-09-03)\nbinary: rustc\ncommit-hash: d6c8169c186ab16a3404cd0d0866674018e8a19e\ncommit-date: 2024-09-03\nhost: x86_64-unknown-linux-gnu\nrelease: 1.83.0-nightly\nLLVM version: 19.1.0\n","stderr":""},"16328442174039370641":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/runner/.rustup/toolchains/nightly-2024-09-04-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\nfmt_debug=\"full\"\noverflow_checks\npanic=\"unwind\"\nproc_macro\nrelocation_model=\"pic\"\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_equal_alignment=\"16\"\ntarget_has_atomic_equal_alignment=\"32\"\ntarget_has_atomic_equal_alignment=\"64\"\ntarget_has_atomic_equal_alignment=\"8\"\ntarget_has_atomic_equal_alignment=\"ptr\"\ntarget_has_atomic_load_store\ntarget_has_atomic_load_store=\"16\"\ntarget_has_atomic_load_store=\"32\"\ntarget_has_atomic_load_store=\"64\"\ntarget_has_atomic_load_store=\"8\"\ntarget_has_atomic_load_store=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_thread_local\ntarget_vendor=\"unknown\"\nub_checks\nunix\n","stderr":""}},"successes":{}}
{"rustc_fingerprint":14800499273971239290,"outputs":{"16328442174039370641":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/runner/.rustup/toolchains/nightly-2024-09-04-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\nfmt_debug=\"full\"\noverflow_checks\npanic=\"unwind\"\nproc_macro\nrelocation_model=\"pic\"\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_equal_alignment=\"16\"\ntarget_has_atomic_equal_alignment=\"32\"\ntarget_has_atomic_equal_alignment=\"64\"\ntarget_has_atomic_equal_alignment=\"8\"\ntarget_has_atomic_equal_alignment=\"ptr\"\ntarget_has_atomic_load_store\ntarget_has_atomic_load_store=\"16\"\ntarget_has_atomic_load_store=\"32\"\ntarget_has_atomic_load_store=\"64\"\ntarget_has_atomic_load_store=\"8\"\ntarget_has_atomic_load_store=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_thread_local\ntarget_vendor=\"unknown\"\nub_checks\nunix\n","stderr":""},"16992575326180275217":{"success":true,"status":"","code":0,"stdout":"rustc 1.83.0-nightly (d6c8169c1 2024-09-03)\nbinary: rustc\ncommit-hash: d6c8169c186ab16a3404cd0d0866674018e8a19e\ncommit-date: 2024-09-03\nhost: x86_64-unknown-linux-gnu\nrelease: 1.83.0-nightly\nLLVM version: 19.1.0\n","stderr":""}},"successes":{}}
28 changes: 27 additions & 1 deletion docs/rust/doc/src/vortex_runend/compress.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,19 @@
<a href="#316" id="316">316</a>
<a href="#317" id="317">317</a>
<a href="#318" id="318">318</a>
<a href="#319" id="319">319</a>
<a href="#320" id="320">320</a>
<a href="#321" id="321">321</a>
<a href="#322" id="322">322</a>
<a href="#323" id="323">323</a>
<a href="#324" id="324">324</a>
<a href="#325" id="325">325</a>
<a href="#326" id="326">326</a>
<a href="#327" id="327">327</a>
<a href="#328" id="328">328</a>
<a href="#329" id="329">329</a>
<a href="#330" id="330">330</a>
<a href="#331" id="331">331</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>arrow_buffer::BooleanBufferBuilder;
<span class="kw">use </span>itertools::Itertools;
<span class="kw">use </span>vortex_array::array::{BoolArray, BooleanBuffer, ConstantArray, PrimitiveArray};
Expand All @@ -336,7 +349,7 @@
<span class="comment">// We can trivially return an all-null REE array
</span><span class="kw">return </span><span class="prelude-val">Ok</span>((
PrimitiveArray::from(<span class="macro">vec!</span>[array.len() <span class="kw">as </span>u64]),
ConstantArray::new(Scalar::null(array.dtype().clone()), array.len()).into_array(),
ConstantArray::new(Scalar::null(array.dtype().clone()), <span class="number">1</span>).into_array(),
));
}
Validity::Array(a) =&gt; <span class="prelude-val">Some</span>(a.into_bool()<span class="question-mark">?</span>.boolean_buffer()),
Expand Down Expand Up @@ -622,6 +635,19 @@
<span class="macro">assert_eq!</span>(values.maybe_null_slice::&lt;i32&gt;(), <span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">0</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">0</span>]);
}

<span class="attr">#[test]
</span><span class="kw">fn </span>encode_all_null() {
<span class="kw">let </span>arr = PrimitiveArray::from_vec(
<span class="macro">vec!</span>[<span class="number">0</span>, <span class="number">0</span>, <span class="number">0</span>, <span class="number">0</span>, <span class="number">0</span>],
Validity::from(BooleanBuffer::new_unset(<span class="number">5</span>)),
);
<span class="kw">let </span>(ends, values) = runend_encode(<span class="kw-2">&amp;</span>arr).unwrap();
<span class="kw">let </span>values = values.into_primitive().unwrap();

<span class="macro">assert_eq!</span>(ends.maybe_null_slice::&lt;u64&gt;(), <span class="macro">vec!</span>[<span class="number">5</span>]);
<span class="macro">assert_eq!</span>(values.maybe_null_slice::&lt;i32&gt;(), <span class="macro">vec!</span>[<span class="number">0</span>]);
}

<span class="attr">#[test]
</span><span class="kw">fn </span>decode() {
<span class="kw">let </span>ends = PrimitiveArray::from(<span class="macro">vec!</span>[<span class="number">2</span>, <span class="number">5</span>, <span class="number">10</span>]);
Expand Down
2 changes: 1 addition & 1 deletion docs/rust/doc/vortex_runend/compress/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `compress` mod in crate `vortex_runend`."><title>vortex_runend::compress - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-fecee23daa4e8a6d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="vortex_runend" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0-nightly (d6c8169c1 2024-09-03)" data-channel="nightly" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../vortex_runend/index.html">vortex_<wbr>runend</a><span class="version">0.21.0</span></h2></div><h2 class="location"><a href="#">Module compress</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate vortex_<wbr>runend</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">vortex_runend</a>::<wbr><a class="mod" href="#">compress</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/vortex_runend/compress.rs.html#1-318">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.runend_decode_bools.html" title="fn vortex_runend::compress::runend_decode_bools">runend_<wbr>decode_<wbr>bools</a></div></li><li><div class="item-name"><a class="fn" href="fn.runend_decode_primitive.html" title="fn vortex_runend::compress::runend_decode_primitive">runend_<wbr>decode_<wbr>primitive</a></div></li><li><div class="item-name"><a class="fn" href="fn.runend_decode_typed_bool.html" title="fn vortex_runend::compress::runend_decode_typed_bool">runend_<wbr>decode_<wbr>typed_<wbr>bool</a></div></li><li><div class="item-name"><a class="fn" href="fn.runend_decode_typed_primitive.html" title="fn vortex_runend::compress::runend_decode_typed_primitive">runend_<wbr>decode_<wbr>typed_<wbr>primitive</a></div></li><li><div class="item-name"><a class="fn" href="fn.runend_encode.html" title="fn vortex_runend::compress::runend_encode">runend_<wbr>encode</a></div></li></ul></section></div></main></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `compress` mod in crate `vortex_runend`."><title>vortex_runend::compress - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-fecee23daa4e8a6d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="vortex_runend" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0-nightly (d6c8169c1 2024-09-03)" data-channel="nightly" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../vortex_runend/index.html">vortex_<wbr>runend</a><span class="version">0.21.0</span></h2></div><h2 class="location"><a href="#">Module compress</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate vortex_<wbr>runend</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">vortex_runend</a>::<wbr><a class="mod" href="#">compress</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/vortex_runend/compress.rs.html#1-331">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.runend_decode_bools.html" title="fn vortex_runend::compress::runend_decode_bools">runend_<wbr>decode_<wbr>bools</a></div></li><li><div class="item-name"><a class="fn" href="fn.runend_decode_primitive.html" title="fn vortex_runend::compress::runend_decode_primitive">runend_<wbr>decode_<wbr>primitive</a></div></li><li><div class="item-name"><a class="fn" href="fn.runend_decode_typed_bool.html" title="fn vortex_runend::compress::runend_decode_typed_bool">runend_<wbr>decode_<wbr>typed_<wbr>bool</a></div></li><li><div class="item-name"><a class="fn" href="fn.runend_decode_typed_primitive.html" title="fn vortex_runend::compress::runend_decode_typed_primitive">runend_<wbr>decode_<wbr>typed_<wbr>primitive</a></div></li><li><div class="item-name"><a class="fn" href="fn.runend_encode.html" title="fn vortex_runend::compress::runend_encode">runend_<wbr>encode</a></div></li></ul></section></div></main></body></html>

0 comments on commit 816eb4d

Please sign in to comment.