Skip to main content

decode_index_key

Function decode_index_key 

Source
pub fn decode_index_key(
    permutation: IndexPermutation,
    key: &[u8],
) -> Result<EncodedQuad, StorageError>
Expand description

Decode a hexastore index key written in permutation order.

Graph is always the last slot. EncodedTerm::DefaultGraph writes zero bytes, so an exhausted buffer at the graph slot means the default graph (Oxigraph-compatible). IndexPermutation::Tsg omits the predicate from the key and injects RDF_TYPE on decode.