Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33385 Introduce a BoundedTrie metric.
Introduce a BoundedTrie metric which is used to efficiently store and aggregate a collection of string sequences (FQNs) with a limited size. It is recommended to review this PR by commits. BoundedTrie is a space-saving way to store many string sequences (like FQN/file paths). It acts like a tree with branches, holding sequences within a size limit. It can efficiently add, combine, and search and perform trimming of children when the size increases beyond defined max. Let's say we want to store these sequences, with a size limit of 3: "folder1/file1.txt" "folder1/file2.txt" "folder2/file3.txt" Here's how the BoundedTrie might look: root - folder1 - file1.txt - file2.txt - folder2 - file3.txt If we try to add "folder1/file4.txt", the trie might trim to "folder1", dropping all children to stay within the size limit. This will be used to replace the StringSet metric for lineage tracking for very large lineage graphs to overcome the size limits.
- Loading branch information