Package org.sumus.dwh.datastore

Examples of org.sumus.dwh.datastore.DataStore


        createParser(args);
    }

    private static DataStore createDataStore(File folder) {
        DataStoreFactory factory = new DataStoreFactory(folder);
        DataStore dataStore = factory.createDataStore();
        return dataStore;
    }
View Full Code Here


        File folder = new File("dataStore/CodeMetrics");
        folder.mkdirs();
    }

    private static void createParser(String[] args) throws IOException, DataStoreException {
        DataStore dataStore = createDataStore(new File(args[1]));
        Parser parser = new Parser(dataStore);
        parser.execute(new File(args[0]));
        dataStore.save();
    }
View Full Code Here

  }

  public DataStore createDataStore() {
    try {
      DatawareHouse datawareHouse = new DatawareHouse (new DatawareHouseDelegate(new FileLocator(folder)));
      DataStore dataStore = datawareHouse.createDataStore(DataStoreDefinition.DATA_STORE_NAME);
      defineDataStore(dataStore);
      return dataStore;
    }
    catch (DatawareHouseException e) {
      throw new RuntimeException("DataStore " + DataStoreDefinition.DATA_STORE_NAME + " already exists");
View Full Code Here

TOP

Related Classes of org.sumus.dwh.datastore.DataStore

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.