Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1029283 // loadOnDiskIntSuffixTree

JavaX fragment (include) [tags: use-pretranspiled]

Uses 11335K of libraries. Click here for Pure Java version (16017L/109K).

static IntSuffixTree_managed loadOnDiskIntSuffixTree(File treeFile, L<Int> encoding) {
  IIntMemory mem = ROMIntMemoryFromFile(treeFile);
  print(mem.size());
  IntSuffixTree_managed tree = new(mem, 1);
  tree.fullText = encoding;
  tree.dependentCloseables = instancesOfLL AutoCloseable(encoding, mem);
  ret tree;
}

Author comment

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: 198 / 291
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)