Package org.aksw.difs.builder
Class DifsFactory
java.lang.Object
org.aksw.difs.builder.DifsFactory
Builder for a dataset-in-filesystem.
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Pathprotected booleanprotected Pathprotected booleanDisable parallel streams for debugging purposesprotected longprotected Randomprotected Pathprotected StoreDefinitionprotected Pathprotected org.aksw.commons.io.util.symlink.SymbolicLinkStrategyprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddIndex(org.apache.jena.graph.Node predicate, String name, Function<org.apache.jena.graph.Node, String[]> objectToPath) org.apache.jena.sparql.core.DatasetGraphconnect()org.apache.jena.query.Datasetorg.aksw.commons.txn.api.TxnMgrorg.aksw.commons.txn.api.TxnMgrcreateTxnMgr(StoreDefinition effStoreDef) protected Pathorg.aksw.commons.io.util.symlink.SymbolicLinkStrategybooleanbooleanstatic Stream<org.apache.jena.rdf.model.Resource>listResources(org.apache.jena.rdf.model.Model model, Collection<org.apache.jena.rdf.model.Property> properties) loadIndexDefinition(IndexDefinition idxDef) loadStoreDefinition(Path confFilePath) static DifsFactorysetConfigFile(Path configFile) setCreateIfNotExists(boolean createIfNotExists) setMaximumNamedGraphCacheSize(long size) setParallel(boolean isParallel) Whether to use parallel streams.setRepoRootPath(Path repoRootPath) setStoreDefinition(Consumer<StoreDefinition> mutator) Create a fresh store definition resource (blank node) and pass it to the mutatorsetStoreDefinition(StoreDefinition storeDefinition) setSymbolicLinkStrategy(org.aksw.commons.io.util.symlink.SymbolicLinkStrategy symlinkStrategy) setUseJournal(boolean useJournal)
-
Field Details
-
symbolicLinkStrategy
protected org.aksw.commons.io.util.symlink.SymbolicLinkStrategy symbolicLinkStrategy -
repoRootPath
-
configFileRelPath
-
storeRelPath
-
indexRelPath
-
createIfNotExists
protected boolean createIfNotExists -
isParallel
protected boolean isParallelDisable parallel streams for debugging purposes -
storeDefinition
-
maximumNamedGraphCacheSize
protected long maximumNamedGraphCacheSize -
useJournal
protected boolean useJournal -
random
-
-
Constructor Details
-
DifsFactory
public DifsFactory()
-
-
Method Details
-
newInstance
-
isCreateIfNotExists
public boolean isCreateIfNotExists() -
setParallel
Whether to use parallel streams. True by default. -
setCreateIfNotExists
-
setMaximumNamedGraphCacheSize
-
listResources
public static Stream<org.apache.jena.rdf.model.Resource> listResources(org.apache.jena.rdf.model.Model model, Collection<org.apache.jena.rdf.model.Property> properties) -
loadStoreDefinition
- Throws:
IOException
-
loadIndexDefinition
-
setUseJournal
-
isUseJournal
public boolean isUseJournal() -
setRepoRootPath
-
getRepoRootPath
-
setConfigFile
-
getConfigFile
-
getStoreDefinition
-
setStoreDefinition
-
setStoreDefinition
Create a fresh store definition resource (blank node) and pass it to the mutator- Parameters:
mutator-- Returns:
-
addIndex
public DatasetGraphIndexerFromFileSystem addIndex(org.apache.jena.graph.Node predicate, String name, Function<org.apache.jena.graph.Node, String[]> objectToPath) throws IOException- Throws:
IOException
-
getSymbolicLinkStrategy
public org.aksw.commons.io.util.symlink.SymbolicLinkStrategy getSymbolicLinkStrategy() -
setSymbolicLinkStrategy
public DifsFactory setSymbolicLinkStrategy(org.aksw.commons.io.util.symlink.SymbolicLinkStrategy symlinkStrategy) -
getConfigFilePath
-
createEffectiveStoreDefinition
- Throws:
IOException
-
createTxnMgr
- Throws:
IOException
-
createTxnMgr
- Throws:
IOException
-
connectAsDataset
- Throws:
IOException
-
connect
- Throws:
IOException
-