MCPcopy Create free account
hub / github.com/apache/paimon-rust / partition_bytes

Function partition_bytes

crates/paimon/src/table/table_commit.rs:1190–1198  ·  view source on GitHub ↗
(pt: &str)

Source from the content-addressed store, hash-verified

1188 }
1189
1190 fn partition_bytes(pt: &str) -> Vec<u8> {
1191 let mut builder = BinaryRowBuilder::new(1);
1192 if pt.len() <= 7 {
1193 builder.write_string_inline(0, pt);
1194 } else {
1195 builder.write_string(0, pt);
1196 }
1197 builder.build_serialized()
1198 }
1199
1200 async fn setup_dirs(file_io: &FileIO, table_path: &str) {
1201 file_io

Callers

nothing calls this directly

Calls 4

write_string_inlineMethod · 0.80
build_serializedMethod · 0.80
lenMethod · 0.45
write_stringMethod · 0.45

Tested by

no test coverage detected