Package edu.brown.mappings

Examples of edu.brown.mappings.ParameterMappingsSet.load()


        if (hstore_conf.site.mappings_path != null) {
            File path = new File(hstore_conf.site.mappings_path);
            if (path.exists()) {
                Database catalog_db = catalogContext.database;
                try {
                    mappings.load(path, catalog_db);
                } catch (IOException ex) {
                    throw new RuntimeException(ex);
                }
            } else if (debug.val) LOG.warn("The ParameterMappings file '" + path + "' does not exist");
        }
View Full Code Here


        // Populate Parameter Mappings
        if (args.hasParam(ArgumentsParser.PARAM_MAPPINGS)) {
            File input_path = args.getFileParam(ArgumentsParser.PARAM_MAPPINGS);
            if (input_path.exists()) {
                ParameterMappingsSet mappings = new ParameterMappingsSet();
                mappings.load(input_path, args.catalog_db);
                ParametersUtil.applyParameterMappings(args.catalog_db, mappings);
                LOG.debug("Applied ParameterMappings file to '" + input_path + "' catalog parameter mappings...");
            } else {
                LOG.warn("ParameterMappings file '" + input_path + "' does not exist. Ignoring...");
            }
View Full Code Here

        // We need the correlations file in order to make sure the parameters
        // get mapped properly
        File correlations_path = this.getParameterMappingsFile(type);
        if (correlations_path != null) {
            ParameterMappingsSet correlations = new ParameterMappingsSet();
            correlations.load(correlations_path, catalog_db);
            ParametersUtil.applyParameterMappings(catalog_db, correlations);
        }
    }
   
    // --------------------------------------------------------------------------------------
View Full Code Here

        ParameterMappingsSet mappings = new ParameterMappingsSet();       
       
        // Load ParameterMappingSet from file
        if (m_paramMappingsFile != null) {
            try {
                mappings.load(m_paramMappingsFile, catalog_db);
            } catch (IOException ex) {
                String msg = "Failed to load ParameterMappingsSet file '" + m_paramMappingsFile + "'";
                throw new RuntimeException(msg, ex);
            }
        }
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.