(key: &str)
| 615 | /// Decode a KG edge key into (from_id, to_id, kind). |
| 616 | #[inline] |
| 617 | pub fn decode_edge_key(key: &str) -> Option<(&str, &str, &str)> { |
| 618 | let mut parts = key.splitn(3, '\0'); |
| 619 | let from_id = parts.next()?; |
| 620 | let to_id = parts.next()?; |
| 621 | let kind = parts.next()?; |
| 622 | Some((from_id, to_id, kind)) |
| 623 | } |
| 624 | |
| 625 | /// Stop words filtered from FTS queries and indexing. |
| 626 | /// |