Examples of StorageEngine


Examples of org.apache.drill.exec.store.StorageEngine

    @Override
    public PhysicalOperator visitScan(Scan scan, Object obj) throws OptimizerException {
      StorageEngineConfig config = logicalPlan.getStorageEngineConfig(scan.getStorageEngine());
      if(config == null) throw new OptimizerException(String.format("Logical plan referenced the storage engine config %s but the logical plan didn't have that available as a config.", scan.getStorageEngine()));
      StorageEngine engine;
      try {
        engine = context.getStorageEngine(config);
        return engine.getPhysicalScan(scan);
      } catch (IOException | ExecutionSetupException e) {
        throw new OptimizerException("Failure while attempting to retrieve storage engine.", e);
      }
    }
View Full Code Here

Examples of org.pentaho.cdf.storage.StorageEngine

    JSONObject result = null;

    try {

      final StorageEngine engine = StorageEngine.getInstance();

      final String action = params.getStringParameter( Parameter.ACTION, "" );

      final StorageEngine.Operation operation = StorageEngine.Operation.get( action );

      switch( operation ) {
        case READ:
          result = engine.read( userSession.getName() );
          break;
        case DELETE:
          result = engine.delete( userSession.getName() );
          break;
        case STORE:
          result = engine.store( params.getStringParameter( Parameter.STORAGE_VALUE, "" ), userSession.getName() );
          break;
        default:
          result = JsonUtil.makeJsonErrorResponse( "Unknown Storage operation: " + action, true );
          break;
      }
View Full Code Here

Examples of org.pentaho.cdf.storage.StorageEngine

        String result;

        try {

            final StorageEngine storagesEngine = StorageEngine.getInstance();
            result = storagesEngine.process(requestParams, userSession);

        } catch (InvalidCdfOperationException ex) {

            final String errMessage = ex.getCause().getClass().getName() + " - " + ex.getMessage();
            logger.error("Error processing storage: " + errMessage);
View Full Code Here

Examples of voldemort.store.StorageEngine

        // Add inconsistency resolving decorator, using their inconsistency
        // resolver (if they gave us one)
        InconsistencyResolver<Versioned<V1>> secondaryResolver = new TimeBasedInconsistencyResolver();

        StorageEngine engine;
        if(storeDef.isView())
            engine = new InMemoryStorageEngine(storeDef.getViewTargetStoreName());
        else
            engine = new InMemoryStorageEngine(storeDef.getName());
View Full Code Here

Examples of voldemort.store.StorageEngine

                                                                                                            .setRequestId(requestId)
                                                                                                            .setComplete(false)
                                                                                                            .setDescription("Native backup")
                                                                                                            .setStatus("started");
        try {
            final StorageEngine storageEngine = getStorageEngine(storeRepository, storeName);
            final long start = System.currentTimeMillis();
            if(storageEngine instanceof NativeBackupable) {

                asyncService.submitOperation(requestId, new AsyncOperation(requestId,
                                                                           "Native backup") {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.