Package net.sf.joafip.redblacktree.service

Examples of net.sf.joafip.redblacktree.service.RBTException


    localCheckLoaded();
    if (!node.isColorSetted() || !node.isRed()) {
      try {
        setStateHaveChanged();
      } catch (HeapRecordableException exception) {
        throw new RBTException(exception);
      }
    }
    node.setRed();
  }
View Full Code Here


    localCheckLoaded();
    if (this.node.getRight() != node) {
      try {
        setStateHaveChanged();
      } catch (HeapRecordableException exception) {
        throw new RBTException(exception);
      }
    }
    this.node.setRight(node);
  }
View Full Code Here

    if (currentElement == null && element != null || currentElement != null
        && !currentElement.equals(element)) {
      try {
        setStateHaveChanged();
      } catch (HeapRecordableException exception) {
        throw new RBTException(exception);
      }
      node.setElement(element);
    }
  }
View Full Code Here

  private void localCheckLoaded() throws RBTException {
    try {
      super.checkLoaded();
    } catch (HeapRecordableException exception) {
      throw new RBTException(exception);
    }
  }
View Full Code Here

      try {
        session.close(EnumFilePersistenceCloseAction.SAVE);
        session.open();
        newTree = (Tree<String>) session.getObject("key");
      } catch (Exception exception) {
        throw new RBTException(exception);
      }
    }
    return newTree;
  }
View Full Code Here

        heapHeader
            .setFreeRootNodeFilePosition(((HeapFreeNode) heapFreeRootNode)
                .getPositionInFile());
      }
    } catch (HeapException exception) {
      throw new RBTException(exception);
    }
  }
View Full Code Here

            .setIdRootNodeFilePosition(((HeapIdNode) heapIdRootNode)
                .getPositionInFile());
      }
    } catch (HeapException exception) {
      logger.warn(HEAP_FILE_ERROR);
      throw new RBTException(exception);
    }
  }
View Full Code Here

    try {
      final HeapHeader heapHeader = (HeapHeader) heapElementManager
          .getHeapHeader();
      return getRootNode(heapHeader);
    } catch (HeapException exception) {
      throw new RBTException(exception);
    }
  }
View Full Code Here

  public void setRootNode(final IRBTNode<E> rootNode) throws RBTException {
    final HeapHeader heapHeader;
    try {
      heapHeader = (HeapHeader) heapElementManager.getHeapHeader();
    } catch (HeapException exception) {
      throw new RBTException(exception);
    }
    setRootNode(heapHeader, rootNode);
  }
View Full Code Here

    return nodeIdentifier;
  }

  public void setElement(final DataRecordIdentifier element)
      throws RBTException {
    throw new RBTException("can not set node element");
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.redblacktree.service.RBTException

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.