Uses 11335K of libraries. Click here for Pure Java version (16017L/109K).
1 | static IntSuffixTree_managed loadOnDiskIntSuffixTree(File treeFile, L<Int> encoding) { |
2 | IIntMemory mem = ROMIntMemoryFromFile(treeFile); |
3 | print(mem.size()); |
4 | IntSuffixTree_managed tree = new(mem, 1); |
5 | tree.fullText = encoding; |
6 | tree.dependentCloseables = instancesOfLL AutoCloseable(encoding, mem); |
7 | ret tree; |
8 | } |
Began life as a copy of #1029256
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029283 |
Snippet name: | loadOnDiskIntSuffixTree |
Eternal ID of this version: | #1029283/4 |
Text MD5: | d0e7710912b5ebb8017a4a9629d59f9e |
Transpilation MD5: | 95d48a3e873b56e4999fb7bf3680b53c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-29 21:51:12 |
Source code size: | 324 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 197 / 289 |
Version history: | 3 change(s) |
Referenced in: | [show references] |