Skip to main content

encode_group

Function encode_group 

Source
pub fn encode_group(columns: &[&[&[u8]]]) -> Result<Vec<u8>>
Expand description

Encodes a group of string columns together, choosing whatever comes out smallest.

The columns do not have to be the same length. Nothing here pairs values up by row, so a group is a set of columns that share an alphabet or a value universe rather than a set of columns from the same table.

ยงErrors

If the group holds more than u32::MAX columns or a column holds more than u32::MAX values, or if an encoding produces something its own decoder would not accept.