Package lupos.datastructures.patriciatrie.disk

Examples of lupos.datastructures.patriciatrie.disk.IDBNode


   * @param idx
   *            Index of the DBNode
   * @return The DBNode with the index idx
   */
  public IDBNode loadDBNode(final int idx, Deserializer deserializer) {
    IDBNode node = this.nodeBuffer.get(idx);
       
    if (node == null) {
      final NodeInputStream nodeInputStream = this.getInputStream(idx);
     
      if (nodeInputStream != null) {
        try {
          node = deserializer.deserialize(this, idx, nodeInputStream);
          nodeInputStream.close();
          this.nodeBuffer.add(node.getNodeIndex(), node);
        }
        catch (IOException e) {
          e.printStackTrace();
        }
      }
View Full Code Here

TOP

Related Classes of lupos.datastructures.patriciatrie.disk.IDBNode

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.