Skip to main content

triple_prefix_len

Function triple_prefix_len 

Source
pub fn triple_prefix_len(logical: &[u8]) -> Result<usize, StorageError>
Expand description

Byte length of the S/P/O prefix of a 4-slot logical key.

Count permutations store G last. EncodedTerm::DefaultGraph is zero bytes, so the prefix may be the entire logical key. This is the same slice super::key_matcher::RowMatcher compares as triple; it is not a decoded dead term.