Package org.apache.commons.configuration

Examples of org.apache.commons.configuration.BaseConfiguration.copy()


*/
public class GiraphHelper {

    public static GiraphGraph getOutputGraph(final GiraphGraph giraphGraph) {
        final BaseConfiguration newConfiguration = new BaseConfiguration();
        newConfiguration.copy(giraphGraph.configuration());
        if (giraphGraph.configuration().containsKey(Constants.GREMLIN_GIRAPH_OUTPUT_LOCATION)) {
            newConfiguration.setProperty(Constants.GREMLIN_GIRAPH_INPUT_LOCATION, giraphGraph.configuration().getOutputLocation() + "/" + Constants.SYSTEM_G);
            newConfiguration.setProperty(Constants.GREMLIN_GIRAPH_OUTPUT_LOCATION, giraphGraph.configuration().getOutputLocation() + "_");
        }
        if (giraphGraph.configuration().containsKey(Constants.GIRAPH_VERTEX_OUTPUT_FORMAT_CLASS)) {
View Full Code Here


        for (int i = 0; i < CONCURRENCY; i++) {
            manager[i] = openStorageManager(i);
            StoreFeatures storeFeatures = manager[i].getFeatures();

            BaseConfiguration sc = new BaseConfiguration();
            sc.copy(baseStoreConfiguration);
            sc.addProperty(GraphDatabaseConfiguration.INSTANCE_RID_SHORT_KEY, (short) i);


            KeyColumnValueStore idStore = manager[i].openDatabase("ids");
            if (storeFeatures.supportsTransactions())
View Full Code Here

    public void clopen(Map<String, ? extends Object> settings) {
        super.close();

        BaseConfiguration newConfig = new BaseConfiguration();
        newConfig.copy(config);
        for (Map.Entry<String,? extends Object> entry : settings.entrySet())
            newConfig.addProperty(entry.getKey(),entry.getValue());

        graph = (StandardTitanGraph) TitanFactory.open(newConfig);
        tx = graph.newTransaction();
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.