Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/paimon-rust
/ int_key
Function
int_key
crates/paimon/src/btree/tests.rs:25–27 ·
view source on GitHub ↗
(v: i32)
Source
from the content-addressed store, hash-verified
23
use bytes::Bytes;
24
25
fn int_key(v: i32) -> Vec<u8> {
26
v.to_be_bytes().to_vec()
27
}
28
29
fn int_cmp(a: &[u8], b: &[u8]) -> std::cmp::Ordering {
30
let a_val = i32::from_be_bytes(a.try_into().unwrap());
Callers
15
test_write_read_roundtrip
Function · 0.85
test_duplicate_keys
Function · 0.85
test_null_keys
Function · 0.85
test_equal_query
Function · 0.85
test_range_queries
Function · 0.85
test_not_equal_query
Function · 0.85
test_in_query
Function · 0.85
test_large_dataset
Function · 0.85
test_meta_serialization
Function · 0.85
test_zstd_compression
Function · 0.85
test_single_entry
Function · 0.85
test_boundary_queries
Function · 0.85
Calls
1
to_vec
Method · 0.80
Tested by
no test coverage detected