Package lupos.datastructures.patriciatrie.ram

Examples of lupos.datastructures.patriciatrie.ram.RBTrieBag


  public Run merge(List<Run> runs, final boolean inmemory) {
    ArrayList<TrieBag> triestoBeMerged = new ArrayList<TrieBag>(runs.size());
    for(Run run: runs){
      triestoBeMerged.add(((TrieBagRun)run).getTrie());
    }
    TrieBag result = (inmemory)? new RBTrieBag() : new DBSeqTrieBag(Run.getFilenameForNewRun());
    try {
      result.merge(triestoBeMerged);
    } catch (TrieNotMergeableException e) {
      System.err.println(e);
      e.printStackTrace();
View Full Code Here


  /**
   * Create a new main memory based trie
   * @return the newly created main memory based trie set
   */
  public static RBTrieBag createRamBasedTrieBag(){
    return new RBTrieBag();
  }
View Full Code Here

TOP

Related Classes of lupos.datastructures.patriciatrie.ram.RBTrieBag

Copyright © 2018 www.massapicom. 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.