Examples of BerkeleyDBStoreSkewed


Examples of plan_runner.storage.BerkeleyDBStoreSkewed

      } else
        throw new RuntimeException("non supported type");
      LOG.info("Storage with Uniform BDB!");     
    }else if(MyUtilities.isBDBSkewed(getConf())){
      if (_typeOfValueIndexed.get(0) instanceof Integer) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(Integer.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(Integer.class, storagePath + "/second", getConf());
      } else if (_typeOfValueIndexed.get(0) instanceof Double) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(Double.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(Double.class, storagePath + "/second", getConf());
      } else if (_typeOfValueIndexed.get(0) instanceof Date) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(Date.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(Date.class, storagePath + "/second", getConf());
      } else if (_typeOfValueIndexed.get(0) instanceof String) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(String.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(String.class, storagePath + "/second", getConf());
      } else
        throw new RuntimeException("non supported type");   
      LOG.info("Storage with Skewed BDB!");
    }else{
      throw new RuntimeException("Unsupported BDB type!");
View Full Code Here

Examples of plan_runner.storage.BerkeleyDBStoreSkewed

      } else
        throw new RuntimeException("non supported type");
      LOG.info("Storage with Uniform BDB!");     
    }else if(MyUtilities.isBDBSkewed(getConf())){
      if (_typeOfValueIndexed.get(0) instanceof Integer) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(Integer.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(Integer.class, storagePath + "/second", getConf());
      } else if (_typeOfValueIndexed.get(0) instanceof Double) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(Double.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(Double.class, storagePath + "/second", getConf());
      } else if (_typeOfValueIndexed.get(0) instanceof Date) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(Date.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(Date.class, storagePath + "/second", getConf());
      } else if (_typeOfValueIndexed.get(0) instanceof String) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(String.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(String.class, storagePath + "/second", getConf());
      } else
        throw new RuntimeException("non supported type");
      LOG.info("Storage with Skewed BDB!");
    }else{
      throw new RuntimeException("Unsupported BDB type!");
View Full Code Here

Examples of plan_runner.storage.BerkeleyDBStoreSkewed

      } else
        throw new RuntimeException("non supported type");
      LOG.info("Storage with Uniform BDB!");     
    }else if(MyUtilities.isBDBSkewed(getConf())){
      if (_typeOfValueIndexed.get(0) instanceof Integer) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(Integer.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(Integer.class, storagePath + "/second", getConf());
      } else if (_typeOfValueIndexed.get(0) instanceof Double) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(Double.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(Double.class, storagePath + "/second", getConf());
      } else if (_typeOfValueIndexed.get(0) instanceof Date) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(Date.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(Date.class, storagePath + "/second", getConf());
      } else if (_typeOfValueIndexed.get(0) instanceof String) {
        _firstRelationStorage = new BerkeleyDBStoreSkewed(String.class, storagePath + "/first", getConf());
        _secondRelationStorage = new BerkeleyDBStoreSkewed(String.class, storagePath + "/second", getConf());
      } else
        throw new RuntimeException("non supported type");   
      LOG.info("Storage with Skewed BDB!");
    }else{
      throw new RuntimeException("Unsupported BDB type!");
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.