public SailImplConfig getConfig() { return new NativeStoreConfig(); }
public NativeStoreConfig(String tripleIndexes, boolean forceSync) { this(tripleIndexes); setForceSync(forceSync); }
NativeStoreConfig nativeConfig = (NativeStoreConfig)config; nativeStore.setTripleIndexes(nativeConfig.getTripleIndexes()); nativeStore.setForceSync(nativeConfig.getForceSync()); if (nativeConfig.getValueCacheSize() >= 0) { nativeStore.setValueCacheSize(nativeConfig.getValueCacheSize()); if (nativeConfig.getValueIDCacheSize() >= 0) { nativeStore.setValueIDCacheSize(nativeConfig.getValueIDCacheSize()); if (nativeConfig.getNamespaceCacheSize() >= 0) { nativeStore.setNamespaceCacheSize(nativeConfig.getNamespaceCacheSize()); if (nativeConfig.getNamespaceIDCacheSize() >= 0) { nativeStore.setNamespaceIDCacheSize(nativeConfig.getNamespaceIDCacheSize()); if (nativeConfig.getIterationCacheSyncThreshold() > 0) { nativeStore.setIterationCacheSyncThreshold(nativeConfig.getIterationCacheSyncThreshold()); EvaluationStrategyFactory evalStratFactory = nativeConfig.getEvaluationStrategyFactory(); if (evalStratFactory != null) { nativeStore.setEvaluationStrategyFactory(evalStratFactory);
lit -> setTripleIndexes(lit.getLabel())); Models.objectLiteral(m.filter(implNode, FORCE_SYNC, null)).ifPresent(lit -> { try { setForceSync(lit.booleanValue()); setValueCacheSize(lit.intValue()); setValueIDCacheSize(lit.intValue()); setNamespaceCacheSize(lit.intValue()); setNamespaceIDCacheSize(lit.intValue());
NativeStoreConfig nativeConfig = (NativeStoreConfig)config; nativeStore.setTripleIndexes(nativeConfig.getTripleIndexes()); nativeStore.setForceSync(nativeConfig.getForceSync()); if (nativeConfig.getValueCacheSize() >= 0) { nativeStore.setValueCacheSize(nativeConfig.getValueCacheSize()); if (nativeConfig.getValueIDCacheSize() >= 0) { nativeStore.setValueIDCacheSize(nativeConfig.getValueIDCacheSize()); if (nativeConfig.getNamespaceCacheSize() >= 0) { nativeStore.setNamespaceCacheSize(nativeConfig.getNamespaceCacheSize()); if (nativeConfig.getNamespaceIDCacheSize() >= 0) { nativeStore.setNamespaceIDCacheSize(nativeConfig.getNamespaceIDCacheSize()); if (nativeConfig.getIterationCacheSyncThreshold() > 0) { nativeStore.setIterationCacheSyncThreshold(nativeConfig.getIterationCacheSyncThreshold()); EvaluationStrategyFactory evalStratFactory = nativeConfig.getEvaluationStrategyFactory(); if (evalStratFactory != null) { nativeStore.setEvaluationStrategyFactory(evalStratFactory);
lit -> setTripleIndexes(lit.getLabel())); Models.objectLiteral(m.filter(implNode, FORCE_SYNC, null)).ifPresent(lit -> { try { setForceSync(lit.booleanValue()); setValueCacheSize(lit.intValue()); setValueIDCacheSize(lit.intValue()); setNamespaceCacheSize(lit.intValue()); setNamespaceIDCacheSize(lit.intValue());
public SailImplConfig getConfig() { return new NativeStoreConfig(); }
public NativeStoreConfig(String tripleIndexes, boolean forceSync) { this(tripleIndexes); setForceSync(forceSync); }
@Override public RepositoryImplConfig getNativeConfig() { // See #221 - Disabled because it is too slow during import // return new SailRepositoryConfig( // new ForwardChainingRDFSInferencerConfig(new NativeStoreConfig())); LuceneSailConfig config = new LuceneSailConfig(new NativeStoreConfig()); // NOTE: We do not set the index dir here but when the KB is registered because we want each // repo to have its own index folder and we don't know the repo ID until it is registered return new SailRepositoryConfig(config); }
@Override public RepositoryImplConfig getNativeConfig() { // See #221 - Disabled because it is too slow during import // return new SailRepositoryConfig( // new ForwardChainingRDFSInferencerConfig(new NativeStoreConfig())); LuceneSailConfig config = new LuceneSailConfig(new NativeStoreConfig()); // NOTE: We do not set the index dir here but when the KB is registered because we want each // repo to have its own index folder and we don't know the repo ID until it is registered return new SailRepositoryConfig(config); }