Package edu.brown.hstore.conf.HStoreConf

Examples of edu.brown.hstore.conf.HStoreConf.Conf


    // ----------------------------------------------------------------------------
    // HTML OUTPUT METHODS
    // ----------------------------------------------------------------------------
   
    public static String makeIndexHTML(HStoreConf conf, String group) {
        final Conf handle = conf.getHandles().get(group);
       
        StringBuilder sb = new StringBuilder();
        sb.append(String.format("<h2>%s Parameters</h2>\n<ul>\n", StringUtil.title(group)));
       
        for (Entry<Field, ConfigProperty> e : handle.getConfigProperties().entrySet()) {
            Field f = e.getKey();
            String entry = REGEX_CONFIG_REPLACE.replace("$1", group).replace("$2", f.getName()).replace("\\$", "$");
            sb.append("  <li>  ").append(entry).append("\n");
        } // FOR
        sb.append("</ul>\n\n");
View Full Code Here


       
        return (sb.toString());
    }
   
    public static String makeHTML(HStoreConf conf, String group) {
        final Conf handle = conf.getHandles().get(group);
        final StringBuilder sb = new StringBuilder().append("\n");
        final Map<Field, ConfigProperty> props = handle.getConfigProperties();
       
        // Parameters:
        //  (1) Row Type Name
        //  (2) Row Key
        //  (3) Row Value
View Full Code Here

        sb.append("<!-- http://hstore.cs.brown.edu/documentation/development/configuration-properties -->\n\n");
        return (sb.toString());
    }
   
    public static String makeBuildCommonXML(HStoreConf conf, String group) {
        final Conf handle = conf.getHandles().get(group);
        assert(handle != null);
       
        StringBuilder sb = new StringBuilder();
        sb.append("<!-- " + group.toUpperCase() + " -->\n");
        for (Entry<Field, ConfigProperty> e : handle.getConfigProperties().entrySet()) {
            Field f = e.getKey();
            ConfigProperty cp = e.getValue();
           
            if (cp.experimental()) {
               
View Full Code Here

    }
   
    public static String makeConfig(HStoreConf conf, boolean experimental) {
        StringBuilder sb = new StringBuilder();
        for (String group : conf.getHandles().keySet()) {
            Conf handle = conf.getHandles().get(group);

            sb.append("## ").append(StringUtil.repeat("-", 100)).append("\n")
              .append("## ").append(StringUtil.title(group)).append(" Parameters\n")
              .append("## ").append(StringUtil.repeat("-", 100)).append("\n\n");
           
            for (Entry<Field, ConfigProperty> e : handle.getConfigProperties().entrySet()) {
                Field f = e.getKey();
                ConfigProperty cp = e.getValue();
                if (cp.experimental() && experimental == false) continue;
               
                String key = String.format("%s.%s", group, f.getName());
View Full Code Here

TOP

Related Classes of edu.brown.hstore.conf.HStoreConf.Conf

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.