public static void init() { if ( initialized ) return ; synchronized(initLock) { if ( initialized ) { JenaSystem.logLifecycle("SDB.init - skip") ; return ; } initialized = true ; JenaSystem.logLifecycle("SDB.init - start") ; MappingRegistry.addPrefixMapping(SDB.symbolPrefix, SDB.symbolSpace) ; // Default is 1000 4Kpages. DerbyUtils.setDerbyPageCacheSize(10000) ; // Wire in the SDB query engine QueryEngineSDB.register() ; // Wire in the SDB update engine UpdateEngineSDB.register() ; SDB.getContext().setIfUndef(useQuadRewrite, false) ; SDB.getContext().setIfUndef(streamGraphAPI, false) ; SDB.getContext().setIfUndef(jdbcStream, true) ; //SDB.getContext().setIfUndef(jdbcFetchSize, ???) ; SDB.getContext().setIfUndef(annotateGeneratedSQL, true) ; //SDB.getContext().setIfUndef(unionDefaultGraph, false) ; AssemblerVocab.init(); JenaSystem.logLifecycle("SDB.init - finish") ; } }
@Test public void testCxt3() { Context cxt = new Context() ; cxt.set(p1, "v") ; cxt.setIfUndef(p1, "w") ; Object v = cxt.get(p1) ; assertSame("Not as first set", "v", v) ; }
private void compilePrint(Store store, Query query) SDB.getContext().setIfUndef(SDB.annotateGeneratedSQL, true) ;