Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make HashedTrie support variable length keys for Channels file storage
- Loading branch information
1 parent
8650584
commit 3f55cf7
Showing
9 changed files
with
330 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package snowblossom.lib.trie; | ||
|
||
public class TrieReport | ||
{ | ||
long nodes; | ||
long leaf_data_count; | ||
long leaf_data_size; | ||
|
||
long malformed_node; | ||
long malformed_node_dead_end; | ||
long malformed_node_pass_through; | ||
long malformed_node_shared_prefix; | ||
long malformed_node_hash; | ||
|
||
public String toString() | ||
{ | ||
return String.format("Report{nodes:%d leafs:%d (%d) malforms:%d (deadend:%d passthru:%d prefix:%d hash:%d)}", | ||
nodes, leaf_data_count, leaf_data_size, | ||
malformed_node, malformed_node_dead_end, malformed_node_pass_through, | ||
malformed_node_shared_prefix, | ||
malformed_node_hash); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.