Package org.lilyproject.util.hbase

Examples of org.lilyproject.util.hbase.TableConfig


            byte[][] splitKeys = TableConfig.parseSplitKeys(regionCount, splitKeysAsString, splitKeyPrefix);

            Long maxFileSize = table.getChild("maxFileSize").getValueAsLong(null);
            Long memStoreFlushSize = table.getChild("memStoreFlushSize").getValueAsLong(null);

            TableConfig config = new TableConfig(splitKeys);
            config.setMaxFileSize(maxFileSize);
            config.setMemStoreFlushSize(memStoreFlushSize);

            for (Conf familyConf : table.getChild("families").getChildren("family")) {
                ColumnFamilyConfig family = buildCfConfig(familyConf);
                String familyName = familyConf.getAttribute("name");
                config.getColumnFamilies().put(familyName, family);
            }

            result.add(new TableConfigEntry(tableNamePattern, config));
        }
View Full Code Here

TOP

Related Classes of org.lilyproject.util.hbase.TableConfig

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.