Package lupos.datastructures.patriciatrie.diskseq

Examples of lupos.datastructures.patriciatrie.diskseq.DBSeqTrieSet.copy()


        }
      }
      // write out patricia trie
      final DBSeqTrieSet disk_set = new DBSeqTrieSet(this.dir+"Set_"+this.runNumber);
      try {
        disk_set.copy(this.map);
        this.listOfTries.add(disk_set);
      } catch (final TrieNotCopyableException e) {
        log.error(e.getMessage(), e);
      }
      // free resources of map in main memory
View Full Code Here


      final List<TrieSet> listOfTries = runGenerator.getTries();
      final TrieSet final_trie = new DBSeqTrieSet(dir + "FinalTrie");
      if(listOfTries.size()>1){
        final_trie.merge(listOfTries);
      } else {
        final_trie.copy(listOfTries.get(0));
      }

      // create real dictionary
      final Generator<String, Integer> smsi = new Generator<String, Integer>() {
View Full Code Here

  @Override
  public Run swapRun() {
    TrieSet diskbasedTrie = new DBSeqTrieSet(Run.getFilenameForNewRun());
    try {
      diskbasedTrie.copy(this.trie);
    } catch (TrieNotCopyableException e) {
      System.err.println(e);
      e.printStackTrace();
    }
    return new TrieSetRun(diskbasedTrie);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.