Package com.orientechnologies.orient.core.index

Examples of com.orientechnologies.orient.core.index.OIndexException


      if (root != null && ((OMVRBTreeEntryDatabase<K, V>) root).record.getIdentity().isPersistent()) {
        if (record.getDatabase() != null && !record.getDatabase().isClosed())
          ((OMVRBTreeEntryDatabase<K, V>) root).load();
      }
    } catch (IOException e) {
      throw new OIndexException("Error on loading root node");
    }
  }
View Full Code Here


      if (root != null && ((OMVRBTreeEntryDatabase<K, V>) root).record.getIdentity().isPersistent()) {
        if (record.getDatabase() != null && !record.getDatabase().isClosed())
          ((OMVRBTreeEntryDatabase<K, V>) root).load();
      }
    } catch (IOException e) {
      throw new OIndexException("Error on loading root node");
    }
  }
View Full Code Here

        for (Entry<String, Object> indexEntry : indexEntries) {
          final OIndexInternal<?> index = indexesToCommit.get(indexEntry.getKey()).getInternal();

          if (index == null) {
            OLogManager.instance().error(this, "Index with name " + indexEntry.getKey() + " was not found.");
            throw new OIndexException("Index with name " + indexEntry.getKey() + " was not found.");
          } else
            index.addTxOperation((ODocument) indexEntry.getValue());
        }

        try {
View Full Code Here

        endAtomicOperation(true);
        throw new OStorageException(null, e);
      }

    } catch (IOException e) {
      throw new OIndexException("Error during local hash table creation.", e);
    } finally {
      releaseExclusiveLock();
    }
  }
View Full Code Here

      endAtomicOperation(false);
    } catch (IOException e) {
      rollback();

      throw new OIndexException("Can not set serializer for index keys", e);
    } catch (Throwable e) {
      rollback();
      throw new OStorageException(null, e);
    } finally {
      releaseExclusiveLock();
View Full Code Here

  private void rollback() {
    try {
      endAtomicOperation(true);
    } catch (IOException ioe) {
      throw new OIndexException("Error during operation roolback", ioe);
    }
  }
View Full Code Here

      }

      endAtomicOperation(false);
    } catch (IOException e) {
      rollback();
      throw new OIndexException("Can not set serializer for index values", e);
    } catch (Throwable e) {
      rollback();
      throw new OStorageException(null, e);
    } finally {
      releaseExclusiveLock();
View Full Code Here

        } finally {
          diskCache.release(cacheEntry);
        }
      }
    } catch (IOException e) {
      throw new OIndexException("Exception during index value retrieval", e);
    } finally {
      releaseSharedLock();
    }
  }
View Full Code Here

      doPut(key, value);

      endAtomicOperation(false);
    } catch (IOException e) {
      rollback();
      throw new OIndexException("Error during index update", e);
    } catch (Throwable e) {
      rollback();
      throw new OStorageException(null, e);
    } finally {
      releaseExclusiveLock();
View Full Code Here

        endAtomicOperation(false);
        return removed;
      }
    } catch (IOException e) {
      rollback();
      throw new OIndexException("Error during index removal", e);
    } catch (Throwable e) {
      rollback();
      throw new OStorageException(null, e);
    } finally {
      releaseExclusiveLock();
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.index.OIndexException

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.