MCPcopy 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

23use bytes::Bytes;
24
25fn int_key(v: i32) -> Vec<u8> {
26 v.to_be_bytes().to_vec()
27}
28
29fn int_cmp(a: &[u8], b: &[u8]) -> std::cmp::Ordering {
30 let a_val = i32::from_be_bytes(a.try_into().unwrap());

Callers 15

test_duplicate_keysFunction · 0.85
test_null_keysFunction · 0.85
test_equal_queryFunction · 0.85
test_range_queriesFunction · 0.85
test_not_equal_queryFunction · 0.85
test_in_queryFunction · 0.85
test_large_datasetFunction · 0.85
test_meta_serializationFunction · 0.85
test_zstd_compressionFunction · 0.85
test_single_entryFunction · 0.85
test_boundary_queriesFunction · 0.85

Calls 1

to_vecMethod · 0.80

Tested by

no test coverage detected