Skip to content

Commit

Permalink
Python docs for dc56eac
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 e7e0c2b commit 6c85bb3
Show file tree
Hide file tree
Showing 89 changed files with 192 additions and 190 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":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":{}}
{"rustc_fingerprint":7171362324873102591,"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":{}}
4 changes: 2 additions & 2 deletions docs/rust/doc/search-index.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}

<span class="comment">// If the RHS is an extension array matching ours, we can extract the storage.
</span><span class="kw">if let </span><span class="prelude-val">Some</span>(rhs_ext) = ExtensionArray::maybe_from(rhs.clone()) {
</span><span class="kw">if let </span><span class="prelude-val">Some</span>(rhs_ext) = ExtensionArray::maybe_from(rhs) {
<span class="kw">return </span>compare(lhs.storage(), rhs_ext.storage(), operator).map(<span class="prelude-val">Some</span>);
}

Expand Down
6 changes: 4 additions & 2 deletions docs/rust/doc/src/vortex_array/macros.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
<a href="#149" id="149">149</a>
<a href="#150" id="150">150</a>
<a href="#151" id="151">151</a>
<a href="#152" id="152">152</a>
</pre></div><pre class="rust"><code><span class="doccomment">//! The core Vortex macro to create new encodings and array types.

</span><span class="kw">use </span><span class="kw">crate</span>::encoding::{ArrayEncodingRef, EncodingRef};
Expand Down Expand Up @@ -215,8 +216,9 @@
///
/// Preferred in cases where a backtrace isn't needed, like when trying multiple encoding to go
/// down different code paths.
</span><span class="kw">pub fn </span>maybe_from(data: <span class="macro-nonterminal">$crate::ArrayData</span>) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="self">Self</span>&gt; {
(data.encoding().id() == &lt;[&lt;<span class="macro-nonterminal">$Name </span>Encoding&gt;] <span class="kw">as </span><span class="macro-nonterminal">$crate::encoding::Encoding</span>&gt;::ID).then_some(<span class="self">Self</span>(data))
</span><span class="kw">pub fn </span>maybe_from(data: <span class="kw">impl </span>AsRef&lt;<span class="macro-nonterminal">$crate::ArrayData</span>&gt;) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="self">Self</span>&gt; {
<span class="kw">let </span>data = data.as_ref();
(data.encoding().id() == &lt;[&lt;<span class="macro-nonterminal">$Name </span>Encoding&gt;] <span class="kw">as </span><span class="macro-nonterminal">$crate::encoding::Encoding</span>&gt;::ID).then_some(<span class="self">Self</span>(data.clone()))
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/rust/doc/src/vortex_ipc/stream_writer/mod.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
}

<span class="kw">pub async fn </span>write_array(<span class="self">self</span>, array: ArrayData) -&gt; VortexResult&lt;<span class="self">Self</span>&gt; {
<span class="kw">if let </span><span class="prelude-val">Some</span>(chunked_array) = ChunkedArray::maybe_from(array.clone()) {
<span class="kw">if let </span><span class="prelude-val">Some</span>(chunked_array) = ChunkedArray::maybe_from(<span class="kw-2">&amp;</span>array) {
<span class="self">self</span>.write_array_stream(chunked_array.array_stream()).<span class="kw">await
</span>} <span class="kw">else </span>{
<span class="self">self</span>.write_array_stream(array.into_array_stream()).<span class="kw">await
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

<span class="kw">fn </span>can_compress(<span class="kw-2">&amp;</span><span class="self">self</span>, array: <span class="kw-2">&amp;</span>ArrayData) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span><span class="kw">dyn </span>EncodingCompressor&gt; {
<span class="comment">// Only support primitive arrays
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array.clone())<span class="question-mark">?</span>;
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array)<span class="question-mark">?</span>;

<span class="comment">// Only supports f32 and f64
</span><span class="kw">if </span>!<span class="macro">matches!</span>(parray.ptype(), PType::F32 | PType::F64) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@

<span class="kw">fn </span>can_compress(<span class="kw-2">&amp;</span><span class="self">self</span>, array: <span class="kw-2">&amp;</span>ArrayData) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span><span class="kw">dyn </span>EncodingCompressor&gt; {
<span class="comment">// Only support primitive arrays
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array.clone())<span class="question-mark">?</span>;
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array)<span class="question-mark">?</span>;

<span class="comment">// Only supports f32 and f64
</span><span class="kw">if </span>!<span class="macro">matches!</span>(parray.ptype(), PType::F32 | PType::F64) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@

<span class="kw">fn </span>can_compress(<span class="kw-2">&amp;</span><span class="self">self</span>, array: <span class="kw-2">&amp;</span>ArrayData) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span><span class="kw">dyn </span>EncodingCompressor&gt; {
<span class="comment">// Only support primitive arrays
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array.clone())<span class="question-mark">?</span>;
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array)<span class="question-mark">?</span>;

<span class="comment">// Only supports unsigned ints
</span><span class="kw">if </span>!parray.ptype().is_unsigned_int() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

<span class="kw">fn </span>can_compress(<span class="kw-2">&amp;</span><span class="self">self</span>, array: <span class="kw-2">&amp;</span>ArrayData) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span><span class="kw">dyn </span>EncodingCompressor&gt; {
<span class="comment">// Only support primitive arrays
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array.clone())<span class="question-mark">?</span>;
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array)<span class="question-mark">?</span>;

<span class="comment">// Only supports ints
</span><span class="kw">if </span>!parray.ptype().is_unsigned_int() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@
like: <span class="prelude-ty">Option</span>&lt;CompressionTree&lt;<span class="lifetime">'a</span>&gt;&gt;,
ctx: SamplingCompressor&lt;<span class="lifetime">'a</span>&gt;,
) -&gt; VortexResult&lt;CompressedArray&lt;<span class="lifetime">'a</span>&gt;&gt; {
<span class="kw">let </span>(codes, values) = <span class="kw">if let </span><span class="prelude-val">Some</span>(p) = PrimitiveArray::maybe_from(array.clone()) {
<span class="kw">let </span>(codes, values) = <span class="kw">if let </span><span class="prelude-val">Some</span>(p) = PrimitiveArray::maybe_from(array) {
<span class="kw">let </span>(codes, values) = dict_encode_primitive(<span class="kw-2">&amp;</span>p);
(codes.into_array(), values.into_array())
} <span class="kw">else if let </span><span class="prelude-val">Some</span>(vb) = VarBinArray::maybe_from(array.clone()) {
} <span class="kw">else if let </span><span class="prelude-val">Some</span>(vb) = VarBinArray::maybe_from(array) {
<span class="kw">let </span>(codes, values) = dict_encode_varbin(<span class="kw-2">&amp;</span>vb);
(codes.into_array(), values.into_array())
} <span class="kw">else if let </span><span class="prelude-val">Some</span>(vb) = VarBinViewArray::maybe_from(array.clone()) {
} <span class="kw">else if let </span><span class="prelude-val">Some</span>(vb) = VarBinViewArray::maybe_from(array) {
<span class="kw">let </span>(codes, values) = dict_encode_varbinview(<span class="kw-2">&amp;</span>vb);
(codes.into_array(), values.into_array())
} <span class="kw">else </span>{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

<span class="kw">fn </span>can_compress(<span class="kw-2">&amp;</span><span class="self">self</span>, array: <span class="kw-2">&amp;</span>ArrayData) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span><span class="kw">dyn </span>EncodingCompressor&gt; {
<span class="comment">// Only support primitive arrays
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array.clone())<span class="question-mark">?</span>;
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array)<span class="question-mark">?</span>;

<span class="comment">// Only supports integers
</span><span class="kw">if </span>!parray.ptype().is_int() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

<span class="kw">fn </span>can_compress(<span class="kw-2">&amp;</span><span class="self">self</span>, array: <span class="kw-2">&amp;</span>ArrayData) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span><span class="kw">dyn </span>EncodingCompressor&gt; {
<span class="comment">// Only support primitive arrays
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array.clone())<span class="question-mark">?</span>;
</span><span class="kw">let </span>parray = PrimitiveArray::maybe_from(array)<span class="question-mark">?</span>;

<span class="comment">// Only supports signed integers
</span><span class="kw">if </span>!parray.ptype().is_signed_int() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(function() {
var implementors = Object.fromEntries([["vortex_array",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html\" title=\"trait core::iter::traits::collect::Extend\">Extend</a>&lt;(<a class=\"enum\" href=\"vortex_array/stats/enum.Stat.html\" title=\"enum vortex_array::stats::Stat\">Stat</a>, <a class=\"struct\" href=\"vortex_scalar/struct.Scalar.html\" title=\"struct vortex_scalar::Scalar\">Scalar</a>)&gt; for <a class=\"struct\" href=\"vortex_array/stats/struct.StatsSet.html\" title=\"struct vortex_array::stats::StatsSet\">StatsSet</a>"]]]]);
var implementors = Object.fromEntries([["vortex_array",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html\" title=\"trait core::iter::traits::collect::Extend\">Extend</a>&lt;(<a class=\"enum\" href=\"vortex_array/stats/enum.Stat.html\" title=\"enum vortex_array::stats::Stat\">Stat</a>, Scalar)&gt; for <a class=\"struct\" href=\"vortex_array/stats/struct.StatsSet.html\" title=\"struct vortex_array::stats::StatsSet\">StatsSet</a>"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
//{"start":57,"fragment_lengths":[561]}
//{"start":57,"fragment_lengths":[456]}
Loading

0 comments on commit 6c85bb3

Please sign in to comment.