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

17
LINES

< > BotCompany Repo | #1015744 // loadConceptsFromFile - load concepts from disk (read only)

JavaX fragment (include)

static Concepts loadConceptsFromFile(File file) {
  new Concepts c;
  c.clearConcepts();
  c.conceptsFile = file;
  DynamicObject_loading.set(true);
  try {
    Map<Long, Concept> map = (Map) unstructureGZFile(file);
    c.concepts.putAll(map);
    c.assignConceptsToUs();
    for (long l : map.keySet())
      c.idCounter = max(c.idCounter, l);
  } finally {
    DynamicObject_loading.set(null);
  }
  //c.allChanged();
  ret c;
}

Author comment

Began life as a copy of #1010427

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015744
Snippet name: loadConceptsFromFile - load concepts from disk (read only)
Eternal ID of this version: #1015744/4
Text MD5: 9475ceb17bc43defd42c21145c240dbd
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2024-10-31 15:23:05
Source code size: 447 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 460 / 490
Version history: 3 change(s)
Referenced in: [show references]