Package com.db4o.foundation

Examples of com.db4o.foundation.Tree


 
  public Tree read(int a_size){
      i_size = a_size;
    if(i_size > 0){
      if(i_orderOnRead){
        Tree tree = null;
        for (int i = 0; i < i_size; i++) {
            tree = Tree.add(tree, (Tree)i_template.read(i_bytes));
                }
                return tree;
      }
View Full Code Here


    }
    return null;
  }
 
  private final Tree linkUp(Tree a_preceding, int a_level){
    Tree node = (Tree)i_template.read(i_bytes);
    i_current++;
    node._preceding = a_preceding;
    node._subsequent = linkDown(a_level + 1);
    node.calculateSize();
    if(i_current < i_size){
      return linkUp(node, a_level - 1);
    }
    return node;
View Full Code Here

  private final Tree linkDown(int a_level){
    if(i_current < i_size){
      i_current++;
      if(a_level < i_levels) {
        Tree preceding = linkDown(a_level + 1);
        Tree node = (Tree)i_template.read(i_bytes);
        node._preceding = preceding;
        node._subsequent = linkDown(a_level + 1);
        node.calculateSize();
        return node;
      }
      return (Tree)i_template.read(i_bytes);
    }
    return null;
View Full Code Here

TOP

Related Classes of com.db4o.foundation.Tree

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.