(key: &str)
| 643 | /// Decode a KG edge key into (from_id, to_id, kind). |
| 644 | #[inline] |
| 645 | pub fn decode_edge_key(key: &str) -> Option<(&str, &str, &str)> { |
| 646 | let mut parts = key.splitn(3, '\0'); |
| 647 | let from_id = parts.next()?; |
| 648 | let to_id = parts.next()?; |
| 649 | let kind = parts.next()?; |
| 650 | Some((from_id, to_id, kind)) |
| 651 | } |
| 652 | |
| 653 | /// Stop words filtered from FTS queries and indexing. |
| 654 | /// |