Class RDFEngineFactoryLegacyBase
java.lang.Object
org.aksw.jenax.dataaccess.sparql.factory.dataengine.RDFEngineFactoryLegacyBase
- All Implemented Interfaces:
RDFEngineFactory
Adapter to the existing infrastructure - may become deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe deteleOnClose flag tells whether calling close will attempt to delete the folder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RDFEnginecreateFolder(Path dbPath, String tempDir, String tempDirPrefix, boolean isAutoDeleteIfCreated) Create a folder, possibly on a different filesystem.Return a builder for a data engine factory.resolveFileSystemAndPath(String fsUri, String pathStr) Create a path on a (possibly remote) file system via Java nio.setupPath(String location, String locationContext, String tempDir, String tempDirPrefix, boolean isAutoDeleteIfCreated) setupPath(String tempDirPrefix, RdfDataSourceSpecBasic spec)
-
Constructor Details
-
RDFEngineFactoryLegacyBase
public RDFEngineFactoryLegacyBase()
-
-
Method Details
-
newEngineBuilder
Description copied from interface:RDFEngineFactoryReturn a builder for a data engine factory. Must never return null.- Specified by:
newEngineBuilderin interfaceRDFEngineFactory
-
create
- Specified by:
createin interfaceRDFEngineFactory- Throws:
Exception
-
setupPath
public static RDFEngineFactoryLegacyBase.CloseablePath setupPath(String tempDirPrefix, RdfDataSourceSpecBasic spec) throws IOException - Throws:
IOException
-
setupPath
public static RDFEngineFactoryLegacyBase.CloseablePath setupPath(String location, String locationContext, String tempDir, String tempDirPrefix, boolean isAutoDeleteIfCreated) throws IOException - Throws:
IOException
-
createFolder
public static RDFEngineFactoryLegacyBase.CloseablePath createFolder(Path dbPath, String tempDir, String tempDirPrefix, boolean isAutoDeleteIfCreated) throws IOException Create a folder, possibly on a different filesystem. Also sets up a close action that removes the folder if it was created by this call.- Throws:
IOException
-
resolveFileSystemAndPath
public static RDFEngineFactoryLegacyBase.CloseablePath resolveFileSystemAndPath(String fsUri, String pathStr) throws IOException Create a path on a (possibly remote) file system via Java nio.- Parameters:
fsUri- The url to a file system. Null or blank for the local one.pathStr- A path on the file system.- Returns:
- A pair comprising the path and a close action which closes the underlying file system.
- Throws:
IOException
-