/** Create a dataset appropriate to the storage type. * This does <em>not</em> write the configuration details into the on-disk zone information. */ public DatasetGraph localStorage(LocalStorageType storage, Path dataPath) { switch(storage) { case EXTERNAL: return null; case MEM: return DatasetGraphFactory.createTxnMem(); case TDB: return TDBFactory.createDatasetGraph(IOX.asLocation(dataPath)); case TDB2: return DatabaseMgr.connectDatasetGraph(dataPath.toString()); default : throw new NotImplemented("Zone::localStorage = "+storage); } }