Package org.drools.factmodel.traits

Source Code of org.drools.factmodel.traits.TripleStoreRegistry

package org.drools.factmodel.traits;


import org.drools.core.util.TripleStore;

import java.util.HashMap;
import java.util.Map;

public class TripleStoreRegistry {
   
    private static Map<String, TripleStore> registry = new HashMap<String, TripleStore>();
   
    public static TripleStore getRegistry( String key ) {
        TripleStore store = registry.get( key );
        if ( store == null ) {
            store = new TripleStore( 500, 0.6f );
            store.setId( key );
            registry.put( key, store );
        }
        return store;
    }

}
TOP

Related Classes of org.drools.factmodel.traits.TripleStoreRegistry

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.