Package lupos.datastructures.patriciatrie.exception

Examples of lupos.datastructures.patriciatrie.exception.TrieNotCopyableException


   * @throws TrieNotCopyableException
   */
  @SuppressWarnings("unchecked")
  public void copy(final TrieWithValue<T> trie) throws TrieNotCopyableException {
    if (!trie.hasCompleteMetadata())
      throw new TrieNotCopyableException();
   
    this.clear();
   
    trie.prepareForReading();
   
View Full Code Here


   *            Trie to copy
   * @throws TrieNotCopyableException
   */
  public void copy(final Trie trie) throws TrieNotCopyableException {
    if (!trie.hasCompleteMetadata()) {
      throw new TrieNotCopyableException();
    }

    this.clear();

    trie.prepareForReading();
View Full Code Here

  }
 
  @Override
  public void copy(final TrieWithValue<Integer> trie) throws TrieNotCopyableException {
    if (!trie.hasCompleteMetadata()){
      throw new TrieNotCopyableException();
    }
   
    this.nodeManager.clear();
    this.nodeManager.writeNextNodeRecursive(DBSeqNodeWithValue.deSerializer, trie.getRootNode());
   
View Full Code Here

  }

  @Override
  public void copy(final Trie trie) throws TrieNotCopyableException {
    if (!trie.hasCompleteMetadata()){
      throw new TrieNotCopyableException();
    }

    this.nodeManager.clear();
    this.nodeManager.writeNextNodeRecursive(DBSeqNode.deSerializer, trie.getRootNode());
View Full Code Here

TOP

Related Classes of lupos.datastructures.patriciatrie.exception.TrieNotCopyableException

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.