Package com.thinkaurelius.titan.diskstorage

Examples of com.thinkaurelius.titan.diskstorage.PermanentStorageException


      }
    }
    try {
      client.mutateBatch(mutationBatch);
    } catch (BlurException e) {
      throw new PermanentStorageException("Unknown error while trying to perform batch update.", e);
    } catch (TException e) {
      throw new PermanentStorageException("Unknown error while trying to perform batch update.", e);
    }
  }
View Full Code Here


        String id = rowResult.getRow().getId();
        rowIds.add(id);
      }
      return rowIds;
    } catch (BlurException e) {
      throw new PermanentStorageException("Unknown error while trying to query store [" + store + "] with indexquery ["
          + indexQuery + "].", e);
    } catch (TException e) {
      throw new PermanentStorageException("Unknown error while trying to query store [" + store + "] with indexquery ["
          + indexQuery + "].", e);
    }
  }
View Full Code Here

          LOG.info("Creating table [" + table + "]");
          client.createTable(describe);
        }
      }
    } catch (BlurException e) {
      throw new PermanentStorageException("Unknown error while trying to clear storage.", e);
    } catch (TException e) {
      throw new PermanentStorageException("Unknown error while trying to clear storage.", e);
    }
  }
View Full Code Here

        throw new IllegalArgumentException("Unsupported type: " + dataType);
      }
    } catch (BlurException e) {
      LOG.error("Unknown error while trying to registered new type. Store [" + store + "] Key [" + key + "] dateType ["
          + dataType + "]");
      throw new PermanentStorageException("Unknown error while trying to registered new type. Store [" + store
          + "] Key [" + key + "] dateType [" + dataType + "]", e);
    } catch (TException e) {
      LOG.error("Unknown error while trying to registered new type. Store [" + store + "] Key [" + key + "] dateType ["
          + dataType + "]");
      throw new PermanentStorageException("Unknown error while trying to registered new type. Store [" + store
          + "] Key [" + key + "] dateType [" + dataType + "]", e);
    }
  }
View Full Code Here

        }

        try {
            return new RowIterator(pool.getTable(tableName).getScanner(scan.setFilter(filters)));
        } catch (IOException e) {
            throw new PermanentStorageException(e);
        }
    }
View Full Code Here

            //Open the environment
            environment = new Environment(directory, envConfig);


        } catch (DatabaseException e) {
            throw new PermanentStorageException("Error during BerkeleyJE initialization: ", e);
        }

    }
View Full Code Here

            if (transactional) {
                tx = environment.beginTransaction(null, null);
            }
            return new BerkeleyJETx(tx, config);
        } catch (DatabaseException e) {
            throw new PermanentStorageException("Could not start BerkeleyJE transaction", e);
        }
    }
View Full Code Here

            Database db = environment.openDatabase(null, name, dbConfig);
            BerkeleyJEKeyValueStore store = new BerkeleyJEKeyValueStore(name, db, this);
            stores.put(name, store);
            return store;
        } catch (DatabaseException e) {
            throw new PermanentStorageException("Could not open BerkeleyJE data store", e);
        }
    }
View Full Code Here

                //Ignore
            }
            try {
                environment.close();
            } catch (DatabaseException e) {
                throw new PermanentStorageException("Could not close BerkeleyJE database", e);
            }
        }

    }
View Full Code Here

        try {
            closeOpenIterators();
            tx.abort();
            tx = null;
        } catch (DatabaseException e) {
            throw new PermanentStorageException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.diskstorage.PermanentStorageException

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.